fix error  controller not login
@@ -24,6 +24,7 @@ package io.jpom.controller;
import cn.jiangzeyin.common.DefaultSystemLog;
import cn.jiangzeyin.common.JsonMessage;
+import io.jpom.common.interceptor.NotLogin;
import org.springframework.boot.autoconfigure.web.servlet.error.AbstractErrorController;
import org.springframework.boot.web.servlet.error.ErrorAttributes;
import org.springframework.http.HttpStatus;
@@ -44,6 +45,7 @@ import java.util.Map;
*/
@Controller
@RequestMapping("${server.error.path:${error.path:/error}}")
+@NotLogin
public class MyErrorController extends AbstractErrorController {
public MyErrorController(ErrorAttributes errorAttributes) {
