Sentinel icon indicating copy to clipboard operation
Sentinel copied to clipboard

[BUG] webmvc_v6x适配器中将resourceName的生成逻辑单独拆分出一个实现,但默认无法替换

Open lin1005q opened this issue 1 year ago • 0 comments

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注解。

How to reproduce it (as minimally and precisely as possible)

Tell us your environment

Anything else we need to know?

lin1005q avatar Dec 30 '24 06:12 lin1005q