session异常

This commit is contained in:
bwcx_jzy 2019-08-23 03:57:34 -05:00
parent 7a5420234b
commit fff46d7f58

View File

@ -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());