-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: regressionA bug that is also a regressionA bug that is also a regression
Milestone
Description
when i use applicationContext.getBeansWithAnnotation(Extensions.class)
;
in spring framework 5.3.20 , i can got a bean,
in spring framework 5.3.28, i can't got a bean.
definition of Extensions
:
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Component
public @interface Extensions {
String[] bizId() default BizScenario.DEFAULT_BIZ_ID;
String[] useCase() default BizScenario.DEFAULT_USE_CASE;
String[] scenario() default BizScenario.DEFAULT_SCENARIO;
Extension[] value() default {};
}
Definition of variable "applicationContext":
@Component
public class ExtensionBootstrap implements ApplicationContextAware {
private ApplicationContext applicationContext;
@Override
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
this.applicationContext = applicationContext;
}
}
Can someone tell me what changes have occurred here?
I think this should be a problem, but I couldn't find where the problem occurred.
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: regressionA bug that is also a regressionA bug that is also a regression