-
Notifications
You must be signed in to change notification settings - Fork 26.6k
Open
Labels
help wantedEverything needs help from contributorsEverything needs help from contributors
Description
Pre-check
- I am sure that all the content I provide is in English.
Search before asking
- I had searched in the issues and found no similar feature requirement.
Apache Dubbo Component
Java SDK (apache/dubbo)
Descriptions
TestProvider has two implementation classes, TestServiceImpl and TestServiceExtImpl. I want to use @ConditionalOnMissingBean to load TestServiceImpl if the bean does not exist. How can I do this?
`
public interface TestProvider {
String getName();
}
@ConditionalOnMissingBean(TestProvider.class)
@DubboService(interfaceClass = TestProvider.class)
public class TestServiceImpl implements TestService {
@OverRide
public String getName() {
return "getName:TestServiceImpl:";
}
}
@DubboService(interfaceClass = TestProvider.class)
public class TestServiceExtImpl extends TestServiceImpl{
@OverRide
public String getName() {
return "TestServiceExtImpl:";
}
}
`
Related issues
No response
Are you willing to submit a pull request to fix on your own?
- Yes I am willing to submit a pull request on my own!
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
help wantedEverything needs help from contributorsEverything needs help from contributors
Type
Projects
Status
Todo