For more detail, please visit:
Spring Boot JPA + PostgreSQL - Building Rest CRUD API example
Front-end that works well with this Back-end
Angular 8 / Angular 10 / Angular 11 / Angular 12 / Angular 13 / Angular 14 / Angular 15 Client
More Practice:
Spring Boot Pagination & Filter example | Spring JPA, Pageable
Spring Data JPA Sort/Order by multiple Columns | Spring Boot
Cache the result: Spring Boot Redis Cache example
Documentation: Spring Boot with Swagger 3 example
Reactive Rest API: Spring Boot WebFlux example
Exception Handling:
Associations:
Security:
Spring Boot + Spring Security JWT Authentication & Authorization
Deployment:
Fullstack:
Run both Back-end & Front-end in one place:
mvn spring-boot:run
Curls -
curl -X POST -H "Content-Type: application/json" -d '{"title":"New Tutorial","description":"Description","published":true}' http://localhost:8080/api/tutorials
curl -X GET http://localhost:8080/api/tutorials
curl -X GET http://localhost:8080/api/tutorials/1
curl -X PUT -H "Content-Type: application/json" -d '{"title":"Updated Tutorial","description":"Description","published":true}' http://localhost:8080/api/tutorials/1
curl -X DELETE http://localhost:8080/api/tutorials/1