Article here: Spring Boot, MongoDB: JWT Authentication with Spring Security
- Appropriate Flow for User Signup & User Login with JWT Authentication
- Spring Boot Application Architecture with Spring Security
- How to configure Spring Security to work with JWT
- How to define Data Models and association for Authentication and Authorization
- Way to use Spring Data MongoDB to interact with MongoDB Database
You can have an overview of our Spring Boot Server with the diagram below:
For more detail, please visit:
Spring Boot, MongoDB: JWT Authentication with Spring Security
Working with Front-end:
Angular 8 / Angular 10 / Angular 11 / Angular 12 / Angular 13
More Practice:
Run both Back-end & Front-end in one place:
mvn spring-boot:run
Khi gửi api signin báo lỗi 500 Xem server log thì thấy java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
Add dependency để add class
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.0</version>
</dependency>