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.
88768876
88778877Also, be particularly careful with `BeanPostProcessor` and `BeanFactoryPostProcessor` definitions
88788878through `@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`].
88818882====
88828883
88838884The following example shows how one bean can be autowired to another bean:
You can’t perform that action at this time.
0 commit comments