Skip to content

Fix: avoid PropertyResolver bean ambiguity with Sentinel#823

Open
yashdotdev13 wants to merge 1 commit into
apache:masterfrom
yashdotdev13:fix-sentinel-duplicate-bean
Open

Fix: avoid PropertyResolver bean ambiguity with Sentinel#823
yashdotdev13 wants to merge 1 commit into
apache:masterfrom
yashdotdev13:fix-sentinel-duplicate-bean

Conversation

@yashdotdev13

Copy link
Copy Markdown

This PR fixes an application startup failure caused by multiple
PropertyResolver beans being present when Dubbo is used together
with Sentinel.

The Dubbo auto-configuration previously exposed a generic
PropertyResolver bean, which conflicted with Spring's Environment.
This change narrows the exposed bean type to
DubboScanBasePackagesPropertyResolver, eliminating ambiguity and
aligning with Spring Boot auto-configuration best practices.

Fixes #727

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parameter 2 of method sentinelDataSourceHandler in com.alibaba.cloud.sentinel.custom.SentinelAutoConfiguration required a single bean, but 2 were found

1 participant