
Prepare your development environment for the Spring Boot boot camp. Install Java JDK 8, Spring Tool Suite 4, and MySQL with internet access to build a hello-world REST API.
Test and validate the calculator API by running a Spring Boot project, using Postman to send JSON payloads with a and b, and inspecting responses.
Build a RESTful API for product management with Java Spring Boot, Spring JPA, and MySQL, covering create, update, get by id, get all, and delete by id, tested via Postman.
Create a new spring boot project with the spring starter wizard named productapi, adding spring web, spring data jpa, and mysql driver dependencies, then finish and download maven dependencies.
Develop a product management API by creating a @RestController, wiring a ProductRepository via @Autowired, and implementing CRUD operations (add, update, get by id, get all, delete) with JPA.
Implement basic authentication for a Spring Boot API by wiring a user details service, loading users by username from a repository, and configuring HTTP basic security with admin restrictions.
Test the securitybasicapp project by running the app, configuring user roles (ROLE_USER, ROLE_ADMIN), and validating basic authentication with Postman on /api/greeting/hello.
Develop a Spring Boot RESTful API with OAuth2 authentication and role-based authorization, backed by a MySQL database, configured with Spring JPA and tested via Postman.
Build OAuth2 support for a Spring Boot API by implementing a custom user details service and authentication provider, configuring an authorization server and token store.
Prepare the SpringOAuthJwt database for oauth2 and jwt by creating tables such as users, oauth_client_details, oauth_client_token, oauth_code, oauth_access_token, and oauth_refresh_token. Define usernames, passwords, and authority for proper role handling.
Create resources for a REST API, return ResponseEntity.ok() with principal, and enable security with @EnableGlobalMethodSecurity securedEnabled = true and BCryptPasswordEncoder for AdminResource and GreetingResource, ensuring admin role access.
Test the spring boot api by setting up oauth clients and users, obtaining a bearer token, and validating access to greeting and admin endpoints.
This course is designed for every developer who wants to build RESTful API using Java Spring Boot. Course contents consists of three grades: Beginning (Level 100), Intermediate (Level 200) and Advanced (Level 300) so you can improve your development skill while learning this course. You can see a course grade on each section.
The course is intended to build RESTful API using Spring Boot with step-by-step approach. It's suitable for junior web developers and welcoming for senior web developers too. All project samples are written in Java. Java programming skills are required.
Required Lab Environment
To perform this course, you should prepare these materials:
Computer with Windows 10, macOS and Linux
Java JDK 8 or later
Spring Tool 4 (Recommended)
Please enjoy your course. Please let me if you have questions corresponding to this course.