Kaynağa Gözat

更新文件上传配置

Woody 1 ay önce
ebeveyn
işleme
e3dc3e19e5

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

@@ -5,7 +5,7 @@ import com.chelvc.cloud.maintain.MaintainServer;
 import com.chelvc.cloud.user.server.UserServer;
 import com.chelvc.cloud.vehicle.server.VehicleServer;
 import com.chelvc.framework.base.config.BeanFullnameGenerator;
-import com.chelvc.framework.base.config.MultiserverMvcConfigurer;
+import com.chelvc.framework.base.config.MultipleServerConfigurer;
 import com.chelvc.framework.database.interceptor.DynamicDatasourceInterceptor;
 import com.chelvc.framework.nacos.config.MultiserverNacosConfigurer;
 import com.chelvc.framework.security.session.OAuthSessionFactory;
@@ -37,7 +37,7 @@ import org.springframework.context.annotation.Import;
                 MaintainServer.class,
                 OAuthSessionFactory.class
         })})
-@Import({MultiserverMvcConfigurer.class, MultiserverNacosConfigurer.class, DynamicDatasourceInterceptor.class})
+@Import({MultipleServerConfigurer.class, MultiserverNacosConfigurer.class, DynamicDatasourceInterceptor.class})
 public class Server {
     public static void main(String[] args) {
         SpringApplication.run(Server.class);

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

@@ -55,9 +55,9 @@ security:
         refresh-token-timeout: 7776000
 
 upload:
-  directory: /home/chelvc/static
+  bucket: /home/chelvc/static
   domain: https://test.chelvc.com/file
-  channel: DEFAULT
+  channel: LOCAL
 
 location:
   clients:

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

@@ -55,9 +55,9 @@ security:
         refresh-token-timeout: 7776000
 
 upload:
-  directory: /home/chelvc/static
+  bucket: /home/chelvc/static
   domain: https://test.chelvc.com/file
-  channel: DEFAULT
+  channel: LOCAL
 
 location:
   clients:

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

@@ -55,9 +55,9 @@ security:
         refresh-token-timeout: 7776000
 
 upload:
-  directory: /home/chelvc/static
+  bucket: /home/chelvc/static
   domain: https://test.chelvc.com/file
-  channel: DEFAULT
+  channel: LOCAL
 
 location:
   clients:

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

@@ -55,9 +55,9 @@ security:
         refresh-token-timeout: 7776000
 
 upload:
-  directory: /home/chelvc/static
+  bucket: /home/chelvc/static
   domain: https://test.chelvc.com/file
-  channel: DEFAULT
+  channel: LOCAL
 
 location:
   clients: