In Java EE security, if a user tries to access a secured resource, they are redirected to the login page. 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
I ended up creating a Filter
just as the Spring Security authentication filters are created. The following Spring Security classes show how they did it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.