Skip to content

Revise usage of @EnableConfigurationProperties#1463

Open
quaff wants to merge 1 commit intospring-cloud:mainfrom
quaff:patch-16
Open

Revise usage of @EnableConfigurationProperties#1463
quaff wants to merge 1 commit intospring-cloud:mainfrom
quaff:patch-16

Conversation

@quaff
Copy link
Contributor

@quaff quaff commented Feb 5, 2025

  1. use @EnableConfigurationProperties to register configuration properties beans if the bean name is not relevant.
  2. remove @EnableConfigurationProperties without specified value if the @Configuration class doesn't contain any @ConfigurationProperties bean.

1. use `@EnableConfigurationProperties` to register configuration properties beans if the bean name is not relevant.
2. remove `@EnableConfigurationProperties` without specified value if the `@Configuration` class doesn't contain any `@ConfigurationProperties` bean.

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants