mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-11-24 16:43:04 +08:00
sa-token-solon-plugin: 升级 solon 为 2.2.1
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<!-- 定义 Sa-Token 版本号 -->
|
||||
<properties>
|
||||
<sa-token.version>1.34.0</sa-token.version>
|
||||
<solon.version>2.1.4</solon.version>
|
||||
<solon.version>2.2.1</solon.version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
</properties>
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.pj;
|
||||
|
||||
|
||||
import org.noear.solon.Solon;
|
||||
import org.noear.solon.annotation.SolonMain;
|
||||
|
||||
import cn.dev33.satoken.SaManager;
|
||||
|
||||
@@ -10,6 +11,7 @@ import cn.dev33.satoken.SaManager;
|
||||
* @author noear
|
||||
*
|
||||
*/
|
||||
@SolonMain
|
||||
public class SaTokenDemoApp {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<!-- 定义 Sa-Token 版本号 -->
|
||||
<properties>
|
||||
<sa-token.version>1.34.0</sa-token.version>
|
||||
<solon.version>2.1.4</solon.version>
|
||||
<solon.version>2.2.1</solon.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
||||
@@ -2,7 +2,9 @@ package com.pj;
|
||||
|
||||
|
||||
import org.noear.solon.Solon;
|
||||
import org.noear.solon.annotation.SolonMain;
|
||||
|
||||
@SolonMain
|
||||
public class SaSsoServerApp {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<servlet-api.version>3.1.0</servlet-api.version>
|
||||
<jakarta-servlet-api.version>6.0.0</jakarta-servlet-api.version>
|
||||
<thymeleaf.version>3.0.9.RELEASE</thymeleaf.version>
|
||||
<solon.version>2.1.4</solon.version>
|
||||
<solon.version>2.2.1</solon.version>
|
||||
<noear-redisx.version>1.4.5</noear-redisx.version>
|
||||
<noear-snack3.version>3.2.54</noear-snack3.version>
|
||||
<jfinal.version>4.9.17</jfinal.version>
|
||||
|
||||
@@ -3,7 +3,6 @@ package cn.dev33.satoken.solon;
|
||||
import cn.dev33.satoken.solon.oauth2.SaOAuth2AutoConfigure;
|
||||
import cn.dev33.satoken.solon.sso.SaSsoAutoConfigure;
|
||||
import org.noear.solon.Solon;
|
||||
import org.noear.solon.Utils;
|
||||
import org.noear.solon.core.AopContext;
|
||||
import org.noear.solon.core.Plugin;
|
||||
|
||||
@@ -40,8 +39,8 @@ public class XPluginImp implements Plugin {
|
||||
|
||||
|
||||
//注入其它 Bean
|
||||
context.beanOnloaded(c -> {
|
||||
beanInitDo(c);
|
||||
context.lifecycle(-99, () -> {
|
||||
beanInitDo(context);
|
||||
context.beanMake(SaSsoAutoConfigure.class);
|
||||
context.beanMake(SaOAuth2AutoConfigure.class);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user