apache / apache/dubbo-spring-boot-project

xml/注解方式定义的消费服务bean如何配合@Conditional相关注解

Open
#779 2 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Java
Stars
5.4k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

如题,在@ConditionalOnBean/@ConditionalOnMissingBean下:
```
@ConditionalOnMissingBean(value = UserService.class, parameterizedContainer = {ReferenceBean.class})
```
失效,在Condition相关注解扫描beanDefination时,获取的RootBD是Reference,导致不能匹配,是否在registerBD时,未考虑泛型问题?

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is named. Start by tracing registerBD and the condition-annotation bean-definition scan with the shown @ConditionalOnMissingBean case, then reproduce the XML/annotation-defined service using a generic ReferenceBean; done means the condition matches the intended bean despite the generic RootBD.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.