woody il y a 3 mois
Parent
commit
d441693b85

+ 2 - 2
src/main/java/com/chelvc/cloud/chelvc/Server.java

@@ -8,7 +8,7 @@ import com.chelvc.framework.base.config.BeanFullnameGenerator;
 import com.chelvc.framework.base.config.MultiserverMvcConfigurer;
 import com.chelvc.framework.database.interceptor.DynamicDatasourceInterceptor;
 import com.chelvc.framework.nacos.config.MultiserverNacosConfigurer;
-import com.chelvc.framework.security.context.AuthorizeSessionFactory;
+import com.chelvc.framework.security.session.OAuthSessionFactory;
 import org.mybatis.spring.annotation.MapperScan;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
@@ -35,7 +35,7 @@ import org.springframework.context.annotation.Import;
                 AdminServer.class,
                 VehicleServer.class,
                 MaintainServer.class,
-                AuthorizeSessionFactory.class
+                OAuthSessionFactory.class
         })})
 @Import({MultiserverMvcConfigurer.class, MultiserverNacosConfigurer.class, DynamicDatasourceInterceptor.class})
 public class Server {

+ 1 - 1
src/main/resources/application-dev.yml

@@ -36,7 +36,7 @@ nacos:
 
 security:
   ignores: /user/**,/vehicle/**
-  authorize:
+  oauth:
     scoped: true
     secret: oauth.token.secret@chelvc!@#2023
     clients:

+ 1 - 1
src/main/resources/application-pre.yml

@@ -36,7 +36,7 @@ nacos:
 
 security:
   ignores: /user/**,/vehicle/**
-  authorize:
+  oauth:
     scoped: true
     secret: oauth.token.secret@chelvc!@#2023
     clients:

+ 1 - 1
src/main/resources/application-prod.yml

@@ -36,7 +36,7 @@ nacos:
 
 security:
   ignores: /user/**,/vehicle/**
-  authorize:
+  oauth:
     scoped: true
     secret: oauth.token.secret@chelvc!@#2023
     clients:

+ 1 - 1
src/main/resources/application-test.yml

@@ -36,7 +36,7 @@ nacos:
 
 security:
   ignores: /user/**,/vehicle/**
-  authorize:
+  oauth:
     scoped: true
     secret: oauth.token.secret@chelvc!@#2023
     clients: