October 2018
Intermediate to advanced
590 pages
15h 5m
English
Now, let's see how Spring Security will work when we try to access a protected resource, in our case, the home page at /.
After you open http://localhost:8080 and the page finishes loading, you can see that you have actually landed on the login page at /login. Let's check the debug log information to see what Spring Security did exactly. As you can see from the log, everything Spring Security did this time is the same as the last time when we tried to access a public resource, except what happened at the last filter, FilterSecurityInterceptor. The following is the log printed out when the request was processed by this filter:
AffirmativeBased : Voter: org.springframework.security.web.access.expression.WebExpressionVoter@93d13c0, ...
Read now
Unlock full access