springboot 配置 中查找application.properties中对应的数据,添加对应的prefix前缀 @ConditionalOnProperty(prefix = "spring.redis", name = "enabled", havingValue = "true")