简体   繁体   English

登录后重定向到特定页面

[英]Redirect to specific page after login

In Java EE security, if a user tries to access a secured resource, they are redirected to the login page. 在Java EE安全性中,如果用户尝试访问受保护的资源,则他们将被重定向到登录页面。 After successful login they are redirected to previously requested secure resource. 成功登录后,它们将被重定向到以前请求的安全资源。

Is it possible to redirect the user to a specific page, in my case application entry page? 是否可以将用户重定向到特定页面,例如我的应用程序输入页面?

Something equivalent to Spring Security's default-target-url and always-use-default-target 等同于Spring Security的default-target-urlalways-use-default-target

I ended up creating a Filter just as the Spring Security authentication filters are created. 我最终创建了一个Filter就像创建了Spring Security身份验证过滤器一样。 The following Spring Security classes show how they did it. 以下Spring Security类展示了它们是如何做到的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM