The following link is a sample project using SiteMesh 3 with Spring Security in Spring Boot:
https://github.com/izeye/samples-spring-boot-branches/tree/sitemesh-and-spring-security
You should place the filter for SiteMesh after the filter for Spring Security.
If not,
you will get the following error in your web browser:
This webpage has a redirect loop
The webpage at http://localhost:8080/login has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
Error code: ERR_TOO_MANY_REDIRECTS
If you have one of the following annotation,
@EnableWebSecurity
@EnableWebMvcSecurity
remove it to enable Spring Boot's Spring Security configuration
including the Spring Security filter.
See the following link for more detail.
http://izeye.blogspot.kr/2015/02/how-to-add-filter-after-spring-security.html
No comments:
Post a Comment