Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt to changes in configuration properties scanning in Spring Boot 2.2 #274

Closed
odrotbohm opened this issue Sep 5, 2019 · 0 comments
Closed
Assignees
Milestone

Comments

@odrotbohm
Copy link
Member

Configuration properties scanning is now enabled by default within @SpringBootApplication. As a consequence, it strongly rejects @Component-annotated properties classes now. We need to adapt to that.

@odrotbohm odrotbohm added this to the 7.2 milestone Sep 5, 2019
@odrotbohm odrotbohm self-assigned this Sep 5, 2019
odrotbohm added a commit that referenced this issue Sep 5, 2019
…ion properties scanning in Boot 2.2.

Removed @component from configuration properties types as they're now scanned automatically and rejected if they carry @component. We now explicitly enable @ConfigurationPropertiesScan for the Salespoint configuration class to make sure Salespoint's application configuration classes are found in addition to the ones in the actual application package. Turned AuthenticationProperties into a value object as Boot doesn't need the no-args constructor and setters anymore.

Switched to @Modulithic + @SpringBootApplication over @modulith.
odrotbohm added a commit that referenced this issue Sep 5, 2019
…ion properties scanning in Boot 2.2.

Removed @component from configuration properties types as they're now scanned automatically and rejected if they carry @component. We now explicitly enable @ConfigurationPropertiesScan for the Salespoint configuration class to make sure Salespoint's application configuration classes are found in addition to the ones in the actual application package. Turned AuthenticationProperties into a value object as Boot doesn't need the no-args constructor and setters anymore.

Switched to @Modulithic + @SpringBootApplication over @modulith.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant