Merge branch '3.4.x'
Closes gh-45626
This commit is contained in:
@@ -1171,11 +1171,10 @@ If you need custom type conversion, you can provide a javadoc:org.springframewor
|
||||
====
|
||||
Beans used for property conversion are requested very early during the application lifecycle so make sure to limit the dependencies that your javadoc:org.springframework.core.convert.ConversionService[] is using.
|
||||
Typically, any dependency that you require may not be fully initialized at creation time.
|
||||
|
||||
You should also declare any javadoc:org.springframework.boot.context.properties.ConfigurationProperties[format=annotation] beans using `static` methods to avoid "`bean is not eligible for getting processed by all BeanPostProcessors`" warnings.
|
||||
====
|
||||
|
||||
TIP: You may want to rename your custom javadoc:org.springframework.core.convert.ConversionService[] if it is not required for configuration keys coercion and only rely on custom converters qualified with javadoc:org.springframework.boot.context.properties.ConfigurationPropertiesBinding[format=annotation].
|
||||
When qualifying a `@Bean` method with `@ConfigurationPropertiesBinding`, the method should be `static` to avoid "`bean is not eligible for getting processed by all BeanPostProcessors`" warnings.
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user