更新 template/common/src/main/java/{{.packagePath}}/common/redis/RedisPoolConfig.java
This commit is contained in:
@@ -17,7 +17,7 @@ import org.springframework.beans.factory.annotation.Value;
|
|||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
@EnableConfigurationProperties({RedisPoolProperties.class})
|
@EnableConfigurationProperties({RedisPoolProperties.class})
|
||||||
@ConditionalOnProperty(name = "redis-config.pool.hostAndPort", havingValue = "true")
|
@ConditionalOnProperty(name = "redis-config.pool.hostAndPort")
|
||||||
public class RedisPoolConfig {
|
public class RedisPoolConfig {
|
||||||
@Autowired
|
@Autowired
|
||||||
private RedisPoolProperties redisPoolProperties;
|
private RedisPoolProperties redisPoolProperties;
|
||||||
|
|||||||
Reference in New Issue
Block a user