使用Redis做集中式缓存
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user