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

[refactoring] Migrate Boot 2 auto-config to Boot #908

Closed
BoykoAlex opened this issue Nov 29, 2022 · 2 comments
Closed

[refactoring] Migrate Boot 2 auto-config to Boot #908

BoykoAlex opened this issue Nov 29, 2022 · 2 comments

Comments

@BoykoAlex
Copy link
Contributor

Boot 2: Configuration beans to scan are listed in spring.factories file under key org.springframework.boot.autoconfigure.EnableAutoConfiguration as classes FQNs separated by commas

Boot 3: spring.factories key org.springframework.boot.autoconfigure.EnableAutoConfiguration is retired. Classes FQNs go into a separate file org.springframework.boot.autoconfigure.AutoConfiguration.imports with each FQN on a new line

This to be implemented in rewrite-spring as a recipe and to be included in the Boot 3 migration aggregate recipe

@BoykoAlex
Copy link
Contributor Author

Looks like Tyler is going to take on this issue in rewrite-spring: openrewrite/rewrite-spring#197

@BoykoAlex
Copy link
Contributor Author

The recipe is part of the Boot 3 upgrade in the latest snapshot. Also pushed this: da35dca. Tried the the upgrade to boot 3 with spring.factories with auto-config key. Worked. Extracted the entry into a separate imports file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants