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 f483200..bf6d30e 100644 --- a/template/common/src/main/java/{{.packagePath}}/common/redis/RedisPoolConfig.java +++ b/template/common/src/main/java/{{.packagePath}}/common/redis/RedisPoolConfig.java @@ -17,7 +17,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;