mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-13 05:12:07 +08:00
sonar代码规范问题修复;
This commit is contained in:
+4
-4
@@ -1,6 +1,6 @@
|
||||
package com.cf.imes.framework.redis.config;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.core.text.StrPool;
|
||||
import com.cf.imes.framework.redis.core.TimeoutRedisCacheManager;
|
||||
import org.springframework.boot.autoconfigure.AutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.cache.CacheProperties;
|
||||
@@ -44,10 +44,10 @@ public class ChenfengCacheAutoConfiguration {
|
||||
config = config.computePrefixWith(cacheName -> {
|
||||
String keyPrefix = cacheProperties.getRedis().getKeyPrefix();
|
||||
if (StringUtils.hasText(keyPrefix)) {
|
||||
keyPrefix = keyPrefix.lastIndexOf(StrUtil.COLON) == -1 ? keyPrefix + StrUtil.COLON : keyPrefix;
|
||||
return keyPrefix + cacheName + StrUtil.COLON;
|
||||
keyPrefix = keyPrefix.lastIndexOf(StrPool.COLON) == -1 ? keyPrefix + StrPool.COLON : keyPrefix;
|
||||
return keyPrefix + cacheName + StrPool.COLON;
|
||||
}
|
||||
return cacheName + StrUtil.COLON;
|
||||
return cacheName + StrPool.COLON;
|
||||
});
|
||||
// 设置使用 JSON 序列化方式
|
||||
config = config.serializeValuesWith(
|
||||
|
||||
Reference in New Issue
Block a user