rengb hace 5 años
padre
commit
076ee6e0f0

+ 10 - 0
dbanaly/pom.xml

@@ -73,6 +73,16 @@
             <artifactId>spring-web</artifactId>
             <version>5.1.4.RELEASE</version>
         </dependency>
+        <dependency>
+            <groupId>org.springframework.boot</groupId>
+            <artifactId>spring-boot-starter-data-redis</artifactId>
+            <version>2.1.2.RELEASE</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.commons</groupId>
+            <artifactId>commons-pool2</artifactId>
+            <version>2.7.0</version>
+        </dependency>
     </dependencies>
 
     <!-- 私有仓库 -->

+ 1 - 1
kernel/src/main/java/com/lantone/qc/kernel/web/config/RedisConfig.java

@@ -1,4 +1,4 @@
-package com.lantone.qc.kernel.web.config;
+package com.lantone.qc.dbanaly.config;
 
 /**
  * @Description:

+ 12 - 0
dbanaly/src/main/resources/application-db.yml

@@ -24,6 +24,18 @@ spring:
         filters: stat
         connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
         use-global-data-source-stat: true
+  redis:
+    database: 10
+    host: 192.168.2.246
+    port: 6379
+    password:
+    timeout: 2000
+    lettuce:
+      pool:
+        max-active: 8
+        min-idle: 0
+        max-wait: -1ms
+        max-idle: 8
 
 mybatis-plus:
   type-aliases-package: com.lantone.qc.dbanaly.lt.entity

+ 0 - 4
kernel/pom.xml

@@ -79,10 +79,6 @@
             <artifactId>spring-cloud-starter-openfeign</artifactId>
             <version>2.1.0.RELEASE</version>
         </dependency>
-        <dependency>
-            <groupId>org.springframework.boot</groupId>
-            <artifactId>spring-boot-starter-data-redis</artifactId>
-        </dependency>
 
         <dependency>
             <groupId>net.sourceforge.jexcelapi</groupId>

+ 0 - 12
kernel/src/main/resources/application.yml

@@ -11,18 +11,6 @@ spring:
       force: true
       charset: UTF-8
       enabled: true
-  redis:
-    database: 0
-    host: 192.168.2.246
-    port: 6379
-    password:
-    timeout: 2000
-    jedis:
-      pool:
-        max-active: 8
-        min-idle: 0
-        max-wait: -1ms
-        max-idle: 8
   profiles:
     active: db