Examples
First Example: https://spring.io/guides/gs/securing-web/ (annotated)
Securing a Spring MVC application
Page based
Specify http security based on rules (match URL)
Specify login page, which also handles login error and logout