diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 76e882c..f47a844 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -54,6 +54,18 @@ spring: data: mongodb: uri: mongodb://smartcity:smartcity@192.168.0.156:27017/smartcity + redis: + database: 6 + host: 192.168.0.156 + port: 6379 + password: 666 + timeout: 3000ms + jedis: + pool: + max-active: 8 + max-wait: 1ms + max-idle: 8 + min-idle: 0 mybatis: config-location: classpath:mybatis/mybatis-config.xml diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml index cac5981..b7aa030 100644 --- a/src/main/resources/application-test.yml +++ b/src/main/resources/application-test.yml @@ -56,11 +56,11 @@ spring: mongodb: uri: mongodb://smartcity:smartcity@192.168.0.156:27017/smartcity redis: - database: 0 + database: 6 host: 127.0.0.1 port: 6379 password: 666 - timeout: 0 + timeout: 3000ms jedis: pool: max-active: 8