convert to spring boot
This commit is contained in:
@@ -79,9 +79,14 @@ jdbc:
|
|||||||
# Redis 配置
|
# Redis 配置
|
||||||
redis:
|
redis:
|
||||||
|
|
||||||
|
# 是否启用 Redis
|
||||||
|
enable: false
|
||||||
|
|
||||||
# Redis 连接参数
|
# Redis 连接参数
|
||||||
host: 127.0.0.1
|
host: 192.168.11.12
|
||||||
port: 6379
|
port: 6379
|
||||||
|
isSSL: false
|
||||||
|
timeout: 2000
|
||||||
password: 1234
|
password: 1234
|
||||||
database: 0
|
database: 0
|
||||||
|
|
||||||
@@ -93,6 +98,9 @@ redis:
|
|||||||
maxIdle: 3
|
maxIdle: 3
|
||||||
maxTotal: 20
|
maxTotal: 20
|
||||||
|
|
||||||
|
# 是否启用Redis系统缓存及会话
|
||||||
|
cacheAndSession: false
|
||||||
|
|
||||||
# Mapper文件刷新线程
|
# Mapper文件刷新线程
|
||||||
mapperRefresh:
|
mapperRefresh:
|
||||||
|
|
||||||
|
|||||||
@@ -24,10 +24,11 @@
|
|||||||
<constructor-arg index="0" ref="jedisPoolConfig" />
|
<constructor-arg index="0" ref="jedisPoolConfig" />
|
||||||
<constructor-arg index="1" value="${redis.host}" />
|
<constructor-arg index="1" value="${redis.host}" />
|
||||||
<constructor-arg index="2" value="${redis.port}" type="int" />
|
<constructor-arg index="2" value="${redis.port}" type="int" />
|
||||||
<constructor-arg index="3" value="2000" type="int" />
|
<constructor-arg index="3" value="${redis.timeout}" type="int" />
|
||||||
<constructor-arg index="4" value="${redis.password}"/>
|
<constructor-arg index="4" value="${redis.password}"/>
|
||||||
<constructor-arg index="5" value="${redis.database}" type="int" />
|
<constructor-arg index="5" value="${redis.database}" type="int" />
|
||||||
<constructor-arg index="6" value="${redis.keyPrefix}"/>
|
<constructor-arg index="6" value="${redis.keyPrefix}"/>
|
||||||
|
<constructor-arg index="7" value="${redis.isSSL}" type="boolean"/>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
</beans>
|
</beans>
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user