mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-05 05:18:12 +08:00
session异常
This commit is contained in:
parent
7a5420234b
commit
fff46d7f58
@ -137,7 +137,12 @@ public class LoginInterceptor extends BaseJpomInterceptor {
|
||||
@Override
|
||||
public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {
|
||||
super.postHandle(request, response, handler, modelAndView);
|
||||
HttpSession session = getSession();
|
||||
HttpSession session;
|
||||
try {
|
||||
session = getSession();
|
||||
} catch (Exception ignored) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
// 静态资源地址参数
|
||||
session.setAttribute("staticCacheTime", DateUtil.currentSeconds());
|
||||
|
Loading…
Reference in New Issue
Block a user