Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Spring Security 有一个很好的特性,它会记住请求资源的 url,并在身份验证成功后将用户重定向到该资源。但我希望用户总是在用户登录后重定向到其他页面。它是如何完成的?
在您的 spring-security 配置中使用以下内容:
<http> <form-login default-target-url='/some/other/page' always-use-default-target="true"/> </http>