sa-token-solon-plugin: 升级 solon 为 1.12.0

This commit is contained in:
noear 2022-12-26 15:37:39 +08:00
parent 37efe9a8d8
commit 422f7d2e4c
2 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@
<jackson-datatype-jsr310.version>2.11.2</jackson-datatype-jsr310.version>
<servlet-api.version>3.1.0</servlet-api.version>
<thymeleaf.version>3.0.9.RELEASE</thymeleaf.version>
<solon.version>1.11.3</solon.version>
<solon.version>1.12.0</solon.version>
<noear-redisx.version>1.4.4</noear-redisx.version>
<jfinal.version>4.9.17</jfinal.version>
<jboot.version>3.14.4</jboot.version>

View File

@ -69,7 +69,7 @@ public class XPluginImp implements Plugin {
SaManager.setSaTokenSecondContext(bean.create());
});
// 注入侦听器 Bean
// 注入侦听器 Bean 可以有多个
context.subBeansOfType(SaTokenListener.class, sl -> {
SaTokenEventCenter.registerListener(sl);
});
@ -115,8 +115,8 @@ public class XPluginImp implements Plugin {
SaManager.setSaSignTemplate(bean);
});
// 自定义 StpLogic 对象
context.getBeanAsync(StpLogic.class, bean -> {
// 自定义 StpLogic 对象可以有多个
context.subBeansOfType(StpLogic.class, bean -> {
StpUtil.setStpLogic(bean);
});
}