大屏页面初始化
This commit is contained in:
@@ -31,7 +31,7 @@ public class LoginInterceptor implements HandlerInterceptor {
|
||||
}
|
||||
|
||||
String token = (String) session.getAttribute("token");
|
||||
if (StringUtils.isEmpty(token)){
|
||||
if (StringUtils.isEmpty(token)) {
|
||||
String json = objectMapper.writeValueAsString(Result.unauthorized());
|
||||
try (PrintWriter writer = response.getWriter()) {
|
||||
writer.write(json);
|
||||
|
||||
Reference in New Issue
Block a user