In this article, we will see how to secure a spring-boot-2.0 MVC pattern application using spring basic security. a user can registration with user name & password as a role base and user can update password. after user login a can view module by role wise. it's has two role admin and user.
$ clone git https://github.com/ahasanhabibsumon/spring-boot-security.git
$ mvn clean install
$ mvn spring-boot:run
- or import maven project on IDE
- change database user
user_name
andpassword
. create database spring_crud;
Go to browser and enter URL http://localhost:8088