From ee16e919fe05a02dbf131f846f4b406af0c63b75 Mon Sep 17 00:00:00 2001 From: ly-chn <3293232930@qq.com> Date: Mon, 13 Nov 2023 17:14:39 +0800 Subject: [PATCH] Update thymeleaf-extend.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 有人反馈在springboot3.x版本中, 在SaTokenConfigure类注入stp, 会导致循环依赖(根据文档来搭建环境, 大部分人的SaTokenConfigure类都继承了WebMvcConfigurer) --- sa-token-doc/plugin/thymeleaf-extend.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sa-token-doc/plugin/thymeleaf-extend.md b/sa-token-doc/plugin/thymeleaf-extend.md index 076cea86..be394241 100644 --- a/sa-token-doc/plugin/thymeleaf-extend.md +++ b/sa-token-doc/plugin/thymeleaf-extend.md @@ -103,7 +103,10 @@ public class SaTokenConfigure { 首先在 SaTokenConfigure 配置类中为 Thymeleaf 配置全局对象: +(注意: 如果`SaTokenConfigure`继承了`WebMvcConfigurer`等类, 可能会造成循环依赖, 如果遇到, 请新建一个其他配置类完成此项配置) + ``` java +@Configuration public class SaTokenConfigure{ // ... 其它代码