mirror of
				https://github.com/continew-org/continew-starter.git
				synced 2025-10-31 10:57:15 +08:00 
			
		
		
		
	style: 优化全局代码格式
This commit is contained in:
		| @@ -86,7 +86,9 @@ public class RedissonAutoConfiguration { | ||||
|                     // 下方配置如果为空,则使用 Redis 的配置 | ||||
|                     if (CollUtil.isEmpty(sentinelServersConfig.getSentinelAddresses())) { | ||||
|                         List<String> nodeList = redisProperties.getSentinel().getNodes(); | ||||
|                         nodeList.stream().map(node -> protocol + node).forEach(sentinelServersConfig::addSentinelAddress); | ||||
|                         nodeList.stream() | ||||
|                             .map(node -> protocol + node) | ||||
|                             .forEach(sentinelServersConfig::addSentinelAddress); | ||||
|                     } | ||||
|                     if (StrUtil.isBlank(sentinelServersConfig.getPassword())) { | ||||
|                         sentinelServersConfig.setPassword(redisProperties.getPassword()); | ||||
| @@ -107,7 +109,8 @@ public class RedissonAutoConfiguration { | ||||
|                         singleServerConfig.setPassword(redisProperties.getPassword()); | ||||
|                     } | ||||
|                     if (StrUtil.isBlank(singleServerConfig.getAddress())) { | ||||
|                         singleServerConfig.setAddress(protocol + redisProperties.getHost() + StringConstants.COLON + redisProperties.getPort()); | ||||
|                         singleServerConfig.setAddress(protocol + redisProperties | ||||
|                             .getHost() + StringConstants.COLON + redisProperties.getPort()); | ||||
|                     } | ||||
|                 } | ||||
|             } | ||||
|   | ||||
| @@ -22,7 +22,6 @@ import org.redisson.config.SentinelServersConfig; | ||||
| import org.redisson.config.SingleServerConfig; | ||||
| import org.springframework.boot.context.properties.ConfigurationProperties; | ||||
|  | ||||
|  | ||||
| /** | ||||
|  * Redisson 配置属性 | ||||
|  * | ||||
|   | ||||
		Reference in New Issue
	
	Block a user