Просмотр исходного кода

【优化】 配置及依赖优化

linfutong лет назад: 3
Родитель
Сommit
4fca9d5e86
3 измененных файлов с 11 добавлено и 80 удалено
  1. 7 69
      pom.xml
  2. 0 10
      zd-common/common-core/pom.xml
  3. 4 1
      zd-modules/zd-base/src/main/resources/bootstrap.yml

+ 7 - 69
pom.xml

@@ -110,6 +110,13 @@
                 <version>${tobato.version}</version>
             </dependency>
 
+            <!-- 动态数据源 -->
+            <dependency>
+                <groupId>com.baomidou</groupId>
+                <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
+                <version>${dynamic-ds.version}</version>
+            </dependency>
+
             <!-- Mybatis 依赖配置 -->
             <dependency>
                 <groupId>org.mybatis.spring.boot</groupId>
@@ -198,74 +205,6 @@
                 <version>${common-pool.version}</version>
             </dependency>
 
-            <!-- 核心模块 -->
-            <dependency>
-                <groupId>com.zd</groupId>
-                <artifactId>zd-common-core</artifactId>
-                <version>${zd.version}</version>
-            </dependency>
-
-            <!-- 接口模块 -->
-            <dependency>
-                <groupId>com.zd</groupId>
-                <artifactId>zd-common-swagger</artifactId>
-                <version>${zd.version}</version>
-            </dependency>
-
-            <!-- 安全模块 -->
-            <dependency>
-                <groupId>com.zd</groupId>
-                <artifactId>zd-common-security</artifactId>
-                <version>${zd.version}</version>
-            </dependency>
-
-            <!-- 权限范围 -->
-            <dependency>
-                <groupId>com.zd</groupId>
-                <artifactId>zd-common-datascope</artifactId>
-                <version>${zd.version}</version>
-            </dependency>
-
-            <!-- 项目整合之后这个包要处理掉 -->
-            <dependency>
-                <groupId>com.zd</groupId>
-                <artifactId>zd-api-system</artifactId>
-                <version>${zd.version}</version>
-            </dependency>
-
-            <!-- 多数据源 -->
-            <dependency>
-                <groupId>com.zd</groupId>
-                <artifactId>zd-common-datasource</artifactId>
-                <version>${zd.version}</version>
-            </dependency>
-
-            <!-- 日志记录 -->
-            <dependency>
-                <groupId>com.zd</groupId>
-                <artifactId>zd-common-log</artifactId>
-                <version>${zd.version}</version>
-            </dependency>
-
-            <!-- 缓存服务 -->
-            <dependency>
-                <groupId>com.zd</groupId>
-                <artifactId>zd-common-redis</artifactId>
-                <version>${zd.version}</version>
-            </dependency>
-
-            <!--      返回值包装      -->
-            <dependency>
-                <groupId>com.zd</groupId>
-                <artifactId>zd-common-resultdata</artifactId>
-                <version>${zd.version}</version>
-            </dependency>
-
-            <dependency>
-                <groupId>com.zd</groupId>
-                <artifactId>zd-common-mqtt</artifactId>
-                <version>${zd.version}</version>
-            </dependency>
             <dependency>
                 <groupId>org.springframework.boot</groupId>
                 <artifactId>spring-boot-starter-test</artifactId>
@@ -316,7 +255,6 @@
                 <version>${zd.version}</version>
             </dependency>
 
-
             <dependency>
                 <groupId>com.zd.swagger</groupId>
                 <artifactId>common-swagger</artifactId>

+ 0 - 10
zd-common/common-core/pom.xml

@@ -37,18 +37,9 @@
             <artifactId>jedis</artifactId>
         </dependency>
 
-        <!-- Druid -->
-        <!--<dependency>
-            <groupId>com.alibaba</groupId>
-            <artifactId>druid-spring-boot-starter</artifactId>
-            <version>${druid.version}</version>
-        </dependency>-->
-
         <dependency>
             <groupId>com.baomidou</groupId>
             <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
-            <version>3.5.2</version>
-            <scope>compile</scope>
         </dependency>
 
         <dependency>
@@ -59,7 +50,6 @@
         <dependency>
             <groupId>com.zd.system</groupId>
             <artifactId>zd-system-api</artifactId>
-            <version>3.1.0</version>
         </dependency>
 
         <!-- excel工具 -->

+ 4 - 1
zd-modules/zd-base/src/main/resources/bootstrap.yml

@@ -1,8 +1,11 @@
 server:
   port: ${service.port.base}
 
-
 spring:
+  servlet:
+    multipart:
+      max-file-size: 300MB
+      max-request-size: 3000MB
   freemarker:
     request-context-attribute: request
     #prefix: /templates/