Sentinel
Sentinel copied to clipboard
[BUG] webmvc_v6x适配器中将resourceName的生成逻辑单独拆分出一个实现,但默认无法替换
Issue Description
Type: bug report
Describe what happened
1.8.8 版本中将资源名前添加http方法的逻辑,拆分到SentinelWebPrefixInterceptor类中。但未添加可替换的注解,导致在不开启allow-bean-definition-overriding的情况下,无法替换为SentinelWebPrefixInterceptor
@Bean
@ConditionalOnProperty(name = "spring.cloud.sentinel.filter.enabled",
matchIfMissing = true)
public SentinelWebMvcConfigurer sentinelWebMvcConfigurer() {
return new SentinelWebMvcConfigurer();
}
Describe what you expected to happen
添加@ConditionalOnMissingBean注解。