lvzhikai před 4 roky
rodič
revize
4439333119

+ 18 - 0
depot-intelligent/pom.xml

@@ -147,6 +147,24 @@
147 147
         <dependency>
148 148
             <groupId>org.springframework.boot</groupId>
149 149
             <artifactId>spring-boot-starter-data-redis</artifactId>
150
+            <exclusions>
151
+                <exclusion>
152
+                    <groupId>redis.clients</groupId>
153
+                    <artifactId>jedis</artifactId>
154
+                </exclusion>
155
+                <exclusion>
156
+                    <artifactId>lettuce-core</artifactId>
157
+                    <groupId>io.lettuce</groupId>
158
+                </exclusion>
159
+            </exclusions>
160
+        </dependency>
161
+        <dependency>
162
+            <groupId>redis.clients</groupId>
163
+            <artifactId>jedis</artifactId>
164
+        </dependency>
165
+        <dependency>
166
+            <groupId>org.apache.commons</groupId>
167
+            <artifactId>commons-pool2</artifactId>
150 168
         </dependency>
151 169
         <dependency>
152 170
             <groupId>org.springframework.session</groupId>

+ 1 - 0
depot-intelligent/src/main/resources/bootstrap.yml

@@ -35,6 +35,7 @@ spring:
35 35
         max-wait: -1
36 36
         max-idle: 8
37 37
         min-idle: 0
38
+        time-between-eviction-runs: 1000
38 39
   # 静态资源配置
39 40
   resources:
40 41
     static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}

+ 18 - 0
depot-web/pom.xml

@@ -155,6 +155,24 @@
155 155
 		<dependency>
156 156
 			<groupId>org.springframework.boot</groupId>
157 157
 			<artifactId>spring-boot-starter-data-redis</artifactId>
158
+			<exclusions>
159
+				<exclusion>
160
+					<groupId>redis.clients</groupId>
161
+					<artifactId>jedis</artifactId>
162
+				</exclusion>
163
+				<exclusion>
164
+					<artifactId>lettuce-core</artifactId>
165
+					<groupId>io.lettuce</groupId>
166
+				</exclusion>
167
+			</exclusions>
168
+		</dependency>
169
+		<dependency>
170
+			<groupId>redis.clients</groupId>
171
+			<artifactId>jedis</artifactId>
172
+		</dependency>
173
+		<dependency>
174
+			<groupId>org.apache.commons</groupId>
175
+			<artifactId>commons-pool2</artifactId>
158 176
 		</dependency>
159 177
 		<dependency>  
160 178
 	        <groupId>org.springframework.session</groupId>  

+ 1 - 0
depot-web/src/main/resources/bootstrap.yml

@@ -35,6 +35,7 @@ spring:
35 35
         max-wait: -1
36 36
         max-idle: 8
37 37
         min-idle: 0
38
+        time-between-eviction-runs: 1000
38 39
   # 静态资源配置
39 40
   resources:
40 41
     static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}