Simple example how to secure a Spring Boot web application with Spring Security.
- gradle bootRun
- Open browser at http://localhost:8080 and follow the instructions.
...is built of five four (HTML-pages) and four Java-classes.
Can be viewed by anyone, even not logged in.
Can be viewed by any logged in user.
Can only be viewed by users with the ADMIN role.
Can be viewed by users with the ADMIN or SUNE role. (sune is my favourite variable name)
Bootstrap for the application.
In memory-store for users.
MVC-specific configuration, for example views.
Secuurity configuration.