使用Redis做集中式缓存

This commit is contained in:
程序猿DD
2016-06-18 23:30:43 +08:00
parent 84bcb9112a
commit 4aac8ea899
6 changed files with 240 additions and 0 deletions
@@ -0,0 +1,15 @@
spring.datasource.url=jdbc:mysql://localhost:3306/test
spring.datasource.username=root
spring.datasource.password=123456
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.jpa.properties.hibernate.hbm2ddl.auto=create-drop
spring.jpa.properties.hibernate.show_sql=true
spring.redis.host=localhost
spring.redis.port=6379
spring.redis.pool.max-idle=8
spring.redis.pool.min-idle=0
spring.redis.pool.max-active=8
spring.redis.pool.max-wait=-1