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

Merge pull request !203 from 西东/dev
This commit is contained in:
孔明 2022-12-26 14:54:39 +00:00 committed by Gitee
commit 3f079c3514
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 5 additions and 5 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.10.13</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,8 +69,8 @@ public class XPluginImp implements Plugin {
SaManager.setSaTokenSecondContext(bean.create());
});
// 注入侦听器 Bean
context.subBean(SaTokenListener.class, sl -> {
// 注入侦听器 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);
});
}