Commit 32759551 authored by daniel's avatar daniel

fix(redis): 新增redis连接数+自定义项解析处理

parent bd231c5b
...@@ -304,6 +304,7 @@ public class RemoteService { ...@@ -304,6 +304,7 @@ public class RemoteService {
// 解析自定义项内容 // 解析自定义项内容
if(StringUtils.isNotBlank(remark)){ if(StringUtils.isNotBlank(remark)){
Gson itemGson = new Gson(); Gson itemGson = new Gson();
try {
List<Remark> remarkList = itemGson.fromJson(remark, new TypeToken<List<Remark>>(){}.getType()); List<Remark> remarkList = itemGson.fromJson(remark, new TypeToken<List<Remark>>(){}.getType());
for(Remark remarkItem : remarkList){ for(Remark remarkItem : remarkList){
String customName = userDefineMap.get(remarkItem.getId()); String customName = userDefineMap.get(remarkItem.getId());
...@@ -313,6 +314,9 @@ public class RemoteService { ...@@ -313,6 +314,9 @@ public class RemoteService {
imgUrl = value.split(";")[0]; imgUrl = value.split(";")[0];
} }
} }
}catch (Exception e){
log.error("解析自定义项内容失败", e);
}
} }
} }
// 设置头像数据 // 设置头像数据
......
...@@ -52,11 +52,11 @@ server.url.https=https://zs.geexek.com/ ...@@ -52,11 +52,11 @@ server.url.https=https://zs.geexek.com/
spring.redis.cluster.max-redirects=3 spring.redis.cluster.max-redirects=3
spring.redis.cluster.nodes=192.168.214.227:7001,192.168.214.227:7002,192.168.214.227:7003 spring.redis.cluster.nodes=192.168.214.227:7001,192.168.214.227:7002,192.168.214.227:7003
# ????? ??????? # ????? ???????
spring.redis.jedis.pool.max-active=50 spring.redis.jedis.pool.max-active=60
# ??????? # ???????
spring.redis.jedis.pool.max-idle=30 spring.redis.jedis.pool.max-idle=40
# ??????? # ???????
spring.redis.jedis.pool.min-idle=10 spring.redis.jedis.pool.min-idle=20
# ????????????????????? # ?????????????????????
spring.redis.jedis.pool.max-wait=2000ms spring.redis.jedis.pool.max-wait=2000ms
......
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