|
|
@@ -57,6 +57,9 @@ public class IdempotentAutoConfiguration {
|
|
|
public RedissonClient redissonClient() {
|
|
|
Config config = new Config();
|
|
|
config.useSingleServer().setAddress(redisProperties.getPrefix() + redisProperties.getHost() + ":" + redisProperties.getPort());
|
|
|
+ if(StrUtil.isNotBlank(redisProperties.getUsername())){
|
|
|
+ config.useSingleServer().setUsername(redisProperties.getUsername());
|
|
|
+ }
|
|
|
if(StrUtil.isNotBlank(redisProperties.getPassword())){
|
|
|
config.useSingleServer().setPassword(redisProperties.getPassword());
|
|
|
}
|