Implementação de autorização e autenticação com Spring e JWT
npm install
spring-boot:run
npm start
INSERT INTO roles(name) VALUES('ROLE_USER');
INSERT INTO roles(name) VALUES('ROLE_MODERATOR');
INSERT INTO roles(name) VALUES('ROLE_ADMIN');
{
"username": "admin",
"email": "admin@hotmail.com",
"password": "123456",
"role":["admin"]
}
{
"username": "mod",
"email": "mod@hotmail.com",
"password": "123456",
"role":["mod", "user"]
}
{
"username": "user",
"email": "user@hotmail.com",
"password": "123456",
"role":["user"]
}