springboot 程序中,服务器重启,登录状态丢失,刷新 index.html 页面,跳转回 druid/login.html,而不是自定义的 url-pattern/login.html 地址
Open
- Dominant language
- Java
- Stars
- 28.2k
- Forks
- 8.6k
- PR merge metrics
- No merged PRs in 30d
Description
springboot 程序中,服务器重启,登录状态丢失,刷新 index.html 页面,跳转回 druid/login.html,而不是自定义的 url-pattern/login.html 地址。
原因在于 springboot 启动后,context path 为空,ResourceServlet 中判断未登录后,依照 context path 跳转的路径有误
Contributor guide
Research direction
Start with ResourceServlet and trace the unauthenticated redirect when the Spring Boot context path is empty after a server restart. Reproduce by refreshing index.html after login state is lost, then verify that the redirect uses the configured url-pattern/login.html rather than druid/login.html.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring-boot
- Domain
- authentication, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100