convert to spring boot

This commit is contained in:
thinkgem
2018-01-09 23:33:23 +08:00
parent 329db53a8f
commit 7237c524c5
24 changed files with 43 additions and 34 deletions

View File

@@ -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:

View File

@@ -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>