Skip to content

Role based access with postgresql as database using JPA, thymeleaf & thyemleaf-security5.

License

Notifications You must be signed in to change notification settings

mohitagrawal939/spring-boot-role-based-access

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot-role-based-access

Role based login with postgresql as database using JPA, thymeleaf & thyemleaf-security5.

Create tables with following configuration

CREATE TABLE product ( id SERIAL NOT NULL PRIMARY KEY, name character varying(45) NOT NULL, brand character varying(45) NOT NULL, madein character varying(45) NOT NULL, price float4 NOT NULL )

CREATE TABLE users ( user_id SERIAL NOT NULL PRIMARY KEY, username character varying(45) NOT NULL UNIQUE, password character varying(64) NOT NULL, enabled int DEFAULT NULL )

CREATE TABLE roles ( role_id SERIAL NOT NULL PRIMARY KEY, name character varying(45) NOT NULL )

CREATE TABLE users_roles ( user_id int NOT NULL, role_id int NOT NULL, CONSTRAINT role_fk FOREIGN KEY (role_id) REFERENCES roles(role_id), CONSTRAINT user_fk FOREIGN KEY (user_id) REFERENCES users(user_id) )

About

Role based access with postgresql as database using JPA, thymeleaf & thyemleaf-security5.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published