-
Create spring boot project using initializr.
-
Implement Spring Security for two roles - User and Admin (for authorized site visitors) and Guest (for unauthorized ones).
-
Use the following endpoints depending on the role of the site visitor:
- for user role -
/user
; - for admin role -
/admin
.
- Display web page for roles:
- for user role - the page with the text:
"Hello, user"
; - for admin role - the page with the users list.