|
|
@@ -25,25 +25,25 @@ spring.application.name=depot-web
|
|
25
|
25
|
#eureka.instance.status-page-url=http://10.10.1.25:${server.port}/swagger-ui.html
|
|
26
|
26
|
|
|
27
|
27
|
# Redis数据库索引(默认为0)
|
|
28
|
|
-#spring.redis.database=4
|
|
|
28
|
+spring.redis.database=4
|
|
29
|
29
|
## Redis服务器地址
|
|
30
|
|
-#spring.redis.host=172.16.0.46
|
|
|
30
|
+spring.redis.host=172.16.0.46
|
|
31
|
31
|
## Redis服务器连接端口
|
|
32
|
|
-#spring.redis.port=6679
|
|
|
32
|
+spring.redis.port=6679
|
|
33
|
33
|
## Redis服务器连接密码(默认为空)
|
|
34
|
|
-#spring.redis.password=123456
|
|
|
34
|
+spring.redis.password=123456
|
|
35
|
35
|
## 连接池最大连接数(使用负值表示没有限制)
|
|
36
|
|
-#spring.redis.jedis.pool.max-active=8
|
|
|
36
|
+spring.redis.jedis.pool.max-active=8
|
|
37
|
37
|
## 连接池最大阻塞等待时间(使用负值表示没有限制)
|
|
38
|
|
-#spring.redis.jedis.pool.max-wait=-1
|
|
|
38
|
+spring.redis.jedis.pool.max-wait=-1
|
|
39
|
39
|
## 连接池中的最大空闲连接
|
|
40
|
|
-#spring.redis.jedis.pool.max-idle=8
|
|
|
40
|
+spring.redis.jedis.pool.max-idle=8
|
|
41
|
41
|
## 连接池中的最小空闲连接
|
|
42
|
|
-#spring.redis.jedis.pool.min-idle=0
|
|
|
42
|
+spring.redis.jedis.pool.min-idle=0
|
|
43
|
43
|
## 连接超时时间(毫秒)
|
|
44
|
|
-#spring.redis.timeout=3000
|
|
|
44
|
+spring.redis.timeout=3000
|
|
45
|
45
|
##配置session的存储方式
|
|
46
|
|
-#spring.session.store-type=redis
|
|
|
46
|
+spring.session.store-type=redis
|
|
47
|
47
|
|
|
48
|
48
|
#全局设置,防止session不一致
|
|
49
|
49
|
zuul.sensitive-headers="*"
|
|
|
@@ -60,8 +60,8 @@ zuul.host.socket-timeout-millis=60000
|
|
60
|
60
|
spring.servlet.multipart.max-file-size=20MB
|
|
61
|
61
|
spring.servlet.multipart.max-request-size=60MB
|
|
62
|
62
|
|
|
63
|
|
-validationQuery = "SELECT 1"
|
|
64
|
|
-testWhileIdle = "true
|
|
|
63
|
+#validationQuery = "SELECT 1"
|
|
|
64
|
+#testWhileIdle = "true
|
|
65
|
65
|
#图片路径
|
|
66
|
66
|
web.upload-path=/home
|
|
67
|
67
|
spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
|