2019-10-15 23:08:57 +07:00
|
|
|
# Spring Boot JWT Authentication example with Spring Security & PostgreSQL
|
|
|
|
|
|
|
|
|
|
For more detail, please visit:
|
|
|
|
|
> [Secure Spring Boot App with Spring Security & JWT Authentication](https://bezkoder.com/spring-boot-jwt-authentication/)
|
|
|
|
|
|
2020-01-18 10:05:24 +07:00
|
|
|
# Fullstack
|
|
|
|
|
|
|
|
|
|
> [Spring Boot + Vue.js JWT Authentication](https://bezkoder.com/spring-boot-vue-js-authentication-jwt-spring-security/)
|
|
|
|
|
|
|
|
|
|
> [Spring Boot + Angular 8 JWT Authentication](https://bezkoder.com/angular-spring-boot-jwt-auth/)
|
|
|
|
|
|
|
|
|
|
|
2019-10-15 23:08:57 +07:00
|
|
|
## Run Spring Boot application
|
|
|
|
|
```
|
|
|
|
|
mvn spring-boot:run
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Run following SQL insert statements
|
|
|
|
|
```
|
|
|
|
|
INSERT INTO roles(name) VALUES('ROLE_USER');
|
|
|
|
|
INSERT INTO roles(name) VALUES('ROLE_MODERATOR');
|
|
|
|
|
INSERT INTO roles(name) VALUES('ROLE_ADMIN');
|
2020-01-18 10:05:24 +07:00
|
|
|
```
|