feat: add ssuport for ignore redissonProperties.getFile empty by using

we want using spring.redis.host/port and ignore spring.redis.redisson config
ie:
-Dspring.redis.redisson.file=
-Dspring.redis.host=xxx
-Dspring.redis.port=xxx
pull/4935/head
qxo 2 years ago
parent f788d5a9fe
commit 3149175654

@ -164,7 +164,7 @@ public class RedissonAutoConfiguration {
throw new IllegalArgumentException("Can't parse config", e1);
}
}
} else if (redissonProperties.getFile() != null) {
} else if (redissonProperties.getFile() != null && !redissonProperties.getFile().isEmpty()) {
try {
InputStream is = getConfigStream();
config = Config.fromYAML(is);

Loading…
Cancel
Save