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.