- Spring Boot 2.1.x
- Spring Security 5 (remember me)
- Spring Data JPA
- Spring Logging
- Spring Bean Validation (JSR-303)
- Spring Global Exception Handler
- Thymeleaf
- jQuery/Bootstrap 4.3/FontAwesome/webjars
- Tomcat 9
- H2 In-Memory Database
git clone https://github.com/uniquejava/FSD.git
cd FSD/lab06/course-app
mvn spring-boot:run -Dspring.profiles.active=dev- Open in browser: http://localhost:8080/course-app/
- Built-in users:
admin/adminandtomcat/tomcat.
checkbox: remember-me
https://docs.spring.io/spring-security/site/docs/5.1.6.RELEASE/reference/htmlsingle/#remember-me
娓娓道来 REST Security with JWT using Java and Spring Security
When should you use CSRF protection? Our recommendation is to use CSRF protection for any request that could be processed by a browser by normal users. If you are only creating a service that is used by non-browser clients, you will likely want to disable CSRF protection.
https://docs.spring.io/spring-security/site/docs/5.1.6.RELEASE/reference/htmlsingle/#csrf
https://www.baeldung.com/global-error-handler-in-a-spring-rest-api
https://www.baeldung.com/exception-handling-for-rest-with-spring
https://www.mkyong.com/maven/how-to-create-a-web-application-project-with-maven/
https://stackoverflow.com/questions/30571319/spring-boot-logging-pattern
https://lmonkiewicz.com/programming/get-noticed-2017/spring-boot-rest-request-validation/
https://www.baeldung.com/global-error-handler-in-a-spring-rest-api
