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

Move away from spring.factories for auto-configurations #4313

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JoeyBling
Copy link

  In the Spring Boot 2.7 Release Notes, Changes to autoconfiguration.

  1. a new file named META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports
  2. A new @AutoConfiguration Annotation

For backwards compatibility, The original configuration is still supported.

stop using spring.factories for auto-configuration in 3.0.

Attention: it would make mandatory the use of Spring Boot 2.7 (or above), This can break existing project that can't use these Spring versions.

@mrniko
Copy link
Member

mrniko commented May 24, 2022

Thank you for your suggestion. I'm afraid your change breaks compatibility with Spring Boot prior 2.7.0 version

@JoeyBling
Copy link
Author

Maybe this can only be adopted when the minimum dependent boot version of this component is 3.0.

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

Successfully merging this pull request may close these issues.

None yet

2 participants