mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
modify sentinel zuul prefix configuration properties
This commit is contained in:
parent
3049f727de
commit
f126d57cc8
@ -45,13 +45,13 @@ import com.netflix.zuul.ZuulFilter;
|
|||||||
* @author tiger
|
* @author tiger
|
||||||
*/
|
*/
|
||||||
@Configuration
|
@Configuration
|
||||||
@ConditionalOnProperty(prefix = PREFIX, name = "enabled", havingValue = "true")
|
@ConditionalOnProperty(prefix = PREFIX, name = "enabled", havingValue = "true", matchIfMissing = true)
|
||||||
public class SentinelZuulAutoConfiguration {
|
public class SentinelZuulAutoConfiguration {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private Environment environment;
|
private Environment environment;
|
||||||
|
|
||||||
public static final String PREFIX = "spring.cloud.alibaba.sentinel.zuul";
|
public static final String PREFIX = "spring.cloud.sentinel.zuul";
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public SentinelZuulProperties sentinelZuulProperties() {
|
public SentinelZuulProperties sentinelZuulProperties() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user