Do Spring's BeanFactoryPostProcessors process BeanPostProcessors' BeanDefinitions? #70599
Unanswered
NadChel
asked this question in
Programming Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Body
If a
BeanPostProcessor
or its dependency is annotated with@Value
, would that work?The answer it no, it won't work
The question I have is why?
BeanFactoryPostProcessor
s (includingPropertySourcesPlaceholderConfigurer
that processes@Value
s) should run fine onBeanPostProcessor
s'BeanDefinition
s (BeanPostProcessor
s are created fromBeanDefinition
s just as regular beans, aren't they). What is the explanation? What is the workaround?Guidelines
Beta Was this translation helpful? Give feedback.
All reactions