mirror of
https://gitee.com/dromara/sa-token.git
synced 2026-02-27 16:50:24 +08:00
update sa-token-doc/doc/use/at-check.md.
spring boot2.6.5版本
satoken 版本 1.29.0 (没有redis集成)
```
@RequestMapping("/x")
public String get() {
return "你好";
}
```
注解拦截配置类加入 @EnableWebMvc 后返回中文字符串乱码
注解拦截配置类不加 @EnableWebMvc 则正常返回中文字符串
This commit is contained in:
@@ -34,7 +34,7 @@ public class SaTokenConfigure implements WebMvcConfigurer {
|
||||
```
|
||||
保证此类被`springboot`启动类扫描到即可
|
||||
|
||||
!> 注意:有同学亲测,在高版本 `SpringBoot (≥2.6.x)` 版本下,需要额外添加 `@EnableWebMvc` 注解才可以使注册拦截器生效。
|
||||
!> 注意:如果在高版本 `SpringBoot (≥2.6.x)` 下注册拦截器生效,则需要额外添加 `@EnableWebMvc` 注解才可以使用。
|
||||
|
||||
|
||||
### 2、使用注解鉴权
|
||||
|
||||
Reference in New Issue
Block a user