修改redis配置,设置密码

parent 6e20b4c3
......@@ -57,7 +57,7 @@ public class RedisRsetController {
List<SysDictitem> SysDictitems=new ArrayList<SysDictitem>();
//模糊查询
//1.shiro 项目字典特殊处理
if (key.equals("15_SHIRO_UNIT")){
if (key.contains("SHIRO_UNIT")){
result=redisService.ReadRedisRest(key);
return XzxtRestResult.build(202,"成功读取redis",result);
}
......@@ -107,7 +107,7 @@ public class RedisRsetController {
dictitem.setGroupid("CODE_UNIT");
dictitem.setCode(ssdw + "%");
JSONArray unit = dictitemService.selectDictitemByCondition(dictitem);
result = redisService.SaveRedisRest("15_SHIRO_UNIT", unit.toString());
result = redisService.SaveRedisRest(ssdw+"_SHIRO_UNIT", unit.toString());
} else {
//传统项目字典特殊处理
if(null!=type && "null"!=type) {
......
......@@ -14,13 +14,13 @@ redis.timeout=10000
#最大空闲数
redis.maxIdle=300
redis.maxIdle=1000
#连接池的最大数据库连接数。设为0表示无限制,如果是jedis 2.4以后用redis.maxTotal
#redis.maxActive=600
redis.maxActive=4000
#控制一个pool可分配多少个jedis实例,用来替换上面的redis.maxActive,如果是jedis 2.4以后用该属性
redis.maxTotal=1000
#最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。
redis.maxWaitMillis=1000
redis.maxWaitMillis=30000
#连接的最小空闲时间 默认1800000毫秒(30分钟)
redis.minEvictableIdleTimeMillis=300000
#每次释放连接的最大数目,默认3
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment