Skip to content

Introduce findAnnotatedBeans(ListableBeanFactory) in ControllerAdviceBean #35571

@snicoll

Description

@snicoll

Looking at the implementation of ControllerAdviceBean#findAnnotatedBeans it requires an ApplicationContext but only for the purpose of retrieving the BeanFactory.

It would be better if such method did not require the application context as it forces all callers to also require it.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions