Merge pull request #703 from zhhal/dev

Update documentation for spring.web.resources.add-mappings configuration
This commit is contained in:
click33 2025-05-04 06:41:51 +08:00 committed by GitHub
commit 25e3a3f9cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -416,7 +416,7 @@ Caused by: java.lang.ClassNotFoundException: cn.dev33.satoken.same.SaSameTemplat
### Q使用拦截器鉴权访问一个不存在的 path 时springboot 会自动在控制台打印一下异常。
可尝试添加以下配置解决:
``` properties
spring.resources.add-mappings=false
spring.web.resources.add-mappings=false
spring.mvc.throw-exception-if-no-handler-found=true
```