☕ Spring Boot Complete Course Outline
☕ Spring Boot Complete Course Outline
ဒီသင်တန်းကို အပိုင်းနှစ်ပိုင်းခွဲပြီး သင်ကြားပေးသွားမှာ ဖြစ်ပါတယ်၊
1. Dynamic Web Page Development with Spring Boot and Thymeleaf
2. Reftful Api Service Development with Spring Boot and Angular
Spring Framework vs Spring Boot
Features of Spring Boot (Auto-Configuration, Starter Dependencies)
Create Spring Boot Project using Spring Initializr
Project Structure & Maven Dependency Management
Model-View-Controller (MVC) Layer Explanation
@Controller, @Service, @Repository Architecture
Handling HTTP Requests (@GetMapping, @PostMapping)
Passing Data from Controller to View (Model, ModelMap)
What is Thymeleaf? Why use it with Spring Boot?
Thymeleaf Syntax – th:text, th:each, th:if, th:object
HTML Form Binding with Spring Model
Form Submission, Validation Errors Display
Layout Structure using Thymeleaf Fragment
Entity Class Creation – @Entity, @Id, @GeneratedValue
Configure MySQL Connection (application.properties)
Use of JpaRepository for CRUD
Query Methods in Repository
Pagination and Sorting Basics
Introduction to Web Security
Custom Login Form with Thymeleaf
Role-based Access Control (ADMIN / USER)
Logout, Session Handling
Database-based Authentication (User Entity)
Example: Student Management System or Employee Directory
Add / Edit / Delete / Search via Web Form
Admin Login with Secure Access
Frontend with Bootstrap + Thymeleaf
🔗 PART II – RESTful API Development using Spring Boot
🌐 Module 6 – REST API Basics
What is REST? HTTP Methods: GET, POST, PUT, DELETE
REST Controller vs Normal Controller
JSON Request/Response (@RestController, @RequestBody)
API Endpoint Design & Best Practices
Create RESTful Endpoints for Entity
Using @PathVariable, @RequestParam
Return ResponseEntity for API Standards
DTO Pattern – Separating Entity and API Models
Handling Errors with @ControllerAdvice, @ExceptionHandler
Custom Exception Classes
Validating API Input (@Valid, BindingResult)
Sending Standard Error Response (JSON)
Stateless Authentication Concept
JWT Token Creation & Verification
User Login API → Token Response
Securing Endpoints with Roles (hasRole, hasAuthority)
Token Expiration & Refresh (optional)
API Testing with Postman
Cross-Origin Resource Sharing (CORS) Setup
Prepare APIs for AngularJS or other Frontend
Swagger UI Documentation for APIs
Create Full Backend System with:
Dynamic Web Admin Panel (Thymeleaf)
Public REST API for Frontend (e.g., Angular, Mobile)
Example Projects:
Inventory Management System
Employee Portal + REST API for Mobile App
✅ Spring Boot Dynamic Web App
✅ Spring Boot REST API (JSON-based)
✅ Spring Security (Form Login + JWT Security)
✅ Database CRUD with Spring Data JPA
✅ Real-World Project Integration