File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -8876,8 +8876,9 @@ parameter-based injection, as in the preceding example.
8876
8876
8877
8877
Also, be particularly careful with `BeanPostProcessor` and `BeanFactoryPostProcessor` definitions
8878
8878
through `@Bean`. Those should usually be declared as `static @Bean` methods, not triggering the
8879
- instantiation of their containing configuration class. Otherwise, `@Autowired` and `@Value` do not
8880
- work on the configuration class itself, since it is being created as a bean instance too early.
8879
+ instantiation of their containing configuration class. Otherwise, `@Autowired` and `@Value` may not
8880
+ work on the configuration class itself, since it is possible to create it as a bean instance earlier than
8881
+ {api-spring-framework}/beans/factory/annotation/AutowiredAnnotationBeanPostProcessor.html[`AutowiredAnnotationBeanPostProcessor`].
8881
8882
====
8882
8883
8883
8884
The following example shows how one bean can be autowired to another bean:
You can’t perform that action at this time.
0 commit comments