modify sentinel zuul prefix configuration properties

pull/398/head
fangjian0423 6 years ago
parent 3049f727de
commit f126d57cc8

@ -45,13 +45,13 @@ import com.netflix.zuul.ZuulFilter;
* @author tiger
*/
@Configuration
@ConditionalOnProperty(prefix = PREFIX, name = "enabled", havingValue = "true")
@ConditionalOnProperty(prefix = PREFIX, name = "enabled", havingValue = "true", matchIfMissing = true)
public class SentinelZuulAutoConfiguration {
@Autowired
private Environment environment;
public static final String PREFIX = "spring.cloud.alibaba.sentinel.zuul";
public static final String PREFIX = "spring.cloud.sentinel.zuul";
@Bean
public SentinelZuulProperties sentinelZuulProperties() {

Loading…
Cancel
Save