大屏项目初始化

This commit is contained in:
2026-03-01 23:21:08 +08:00
parent 0a95924d34
commit 86c1e58644
2 changed files with 64 additions and 46 deletions

View File

@@ -14,7 +14,7 @@ public class LoginInterceptor implements HandlerInterceptor {
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
HttpSession session = request.getSession(false);
if (session == null) {
response.sendRedirect(request.getContextPath() + "/index.html");
response.sendRedirect("/login");
return false;
}
return true;