Grails Spring Security 插件文档显示了与注销 url 相关的这两个属性(复制自https://github.com/grails-plugins/grails-spring-security-core/blob/master/src/docs/guide/13%20URL %20Properties.gdoc )
logout.afterLogoutUrl | '/' | URL for redirect after logout.
logout.filterProcessesUrl | '/j_spring_security_logout' | Logout URL, intercepted by Spring Security filter.
当我运行 s2-quickstart 脚本来生成 时LogoutController
,默认行为是重定向到logout.filterProcessesUrl
.
logout.afterLogoutUrl
如果LogoutController
不重定向到它的目的是什么?