完善文档

This commit is contained in:
click33 2023-05-03 05:09:15 +08:00
parent ca65c2d9fd
commit fc4d9a8f62
3 changed files with 8 additions and 2 deletions

View File

@ -26,7 +26,7 @@ public class GlobalException {
// 打印堆栈以供调试
System.out.println("全局异常---------------");
e.printStackTrace();
e.printStackTrace();
// 不同异常返回不同状态码
AjaxJson aj = null;

View File

@ -19,7 +19,7 @@ sa-token:
# 是否输出操作日志
is-log: true
spring:
spring:
# redis配置
redis:
# Redis数据库索引默认为0

View File

@ -428,6 +428,12 @@ Caused by: java.lang.ClassNotFoundException: cn.dev33.satoken.same.SaSameTemplat
- (2) 在自定义StpUtil类加上类似 @Component 的注解让容器启动时扫描到自动初始化
### Q使用拦截器鉴权访问一个不存在的 path 时springboot 会自动在控制台打印一下异常。
可尝试添加以下配置解决:
``` properties
spring.resources.add-mappings=false
spring.mvc.throw-exception-if-no-handler-found=true
```