From d6cad032acc7fe19bd204264ee019e4b2d39e160 Mon Sep 17 00:00:00 2001 From: AppleOfGray Date: Thu, 31 Mar 2022 07:30:10 +0000 Subject: [PATCH] =?UTF-8?q?update=20sa-token-doc/doc/use/at-check.md.=20sp?= =?UTF-8?q?ring=20boot2.6.5=E7=89=88=E6=9C=AC=20satoken=20=E7=89=88?= =?UTF-8?q?=E6=9C=AC=201.29.0=20(=E6=B2=A1=E6=9C=89redis=E9=9B=86=E6=88=90?= =?UTF-8?q?)=20```=20@RequestMapping("/x")=20=20=20=20=20public=20String?= =?UTF-8?q?=20get()=20{=20=20=20=20=20=20=20=20=20return=20"=E4=BD=A0?= =?UTF-8?q?=E5=A5=BD";=20}=20```?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 注解拦截配置类加入 @EnableWebMvc 后返回中文字符串乱码 注解拦截配置类不加 @EnableWebMvc 则正常返回中文字符串 --- sa-token-doc/doc/use/at-check.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sa-token-doc/doc/use/at-check.md b/sa-token-doc/doc/use/at-check.md index 6d11b874..943c7b35 100644 --- a/sa-token-doc/doc/use/at-check.md +++ b/sa-token-doc/doc/use/at-check.md @@ -34,7 +34,7 @@ public class SaTokenConfigure implements WebMvcConfigurer { ``` 保证此类被`springboot`启动类扫描到即可 -!> 注意:有同学亲测,在高版本 `SpringBoot (≥2.6.x)` 版本下,需要额外添加 `@EnableWebMvc` 注解才可以使注册拦截器生效。 +!> 注意:如果在高版本 `SpringBoot (≥2.6.x)` 下注册拦截器生效,则需要额外添加 `@EnableWebMvc` 注解才可以使用。 ### 2、使用注解鉴权