diff --git a/template/common/src/main/java/{{.packagePath}}/common/redis/RedisPoolConfig.java b/template/common/src/main/java/{{.packagePath}}/common/redis/RedisPoolConfig.java index 85ce928..ab8b893 100644 --- a/template/common/src/main/java/{{.packagePath}}/common/redis/RedisPoolConfig.java +++ b/template/common/src/main/java/{{.packagePath}}/common/redis/RedisPoolConfig.java @@ -14,7 +14,7 @@ import org.springframework.beans.factory.annotation.Value; @Configuration @EnableConfigurationProperties({RedisPoolProperties.class}) -@ConditionalOnProperty(name = "redis-config.pool.hostAndPort", havingValue = "true") +@ConditionalOnProperty(name = "redis-config.pool.hostAndPort") public class RedisPoolConfig { @Autowired private RedisPoolProperties redisPoolProperties;