[BUG] webmvc_v6x适配器中将resourceName的生成逻辑单独拆分出一个实现,但默认无法替换
Open
- Dominant language
- Java
- Stars
- 23.1k
- Forks
- 8.1k
- PR merge metrics
- No merged PRs in 30d
Description
## Issue Description
Type: *bug report*
### Describe what happened
1.8.8 版本中将资源名前添加http方法的逻辑,拆分到SentinelWebPrefixInterceptor类中。但未添加可替换的注解,导致在不开启`allow-bean-definition-overriding`的情况下,无法替换为`SentinelWebPrefixInterceptor`
```java
@Bean
@ConditionalOnProperty(name = "spring.cloud.sentinel.filter.enabled",
matchIfMissing = true)
public SentinelWebMvcConfigurer sentinelWebMvcConfigurer() {
return new SentinelWebMvcConfigurer();
}
```
### Describe what you expected to happen
添加`@ConditionalOnMissingBean`注解。
### How to reproduce it (as minimally and precisely as possible)
1.
2.
3.
### Tell us your environment
### Anything else we need to know?
Contributor guide
Assessment
This issue has not been assessed yet.