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

Spring Boot 3 milestone 5 EnableAutoConfiguration spring.factories #32566

Closed
AihiAhazi opened this issue Oct 1, 2022 · 1 comment
Closed

Comments

@AihiAhazi
Copy link

AihiAhazi commented Oct 1, 2022

Starting with Spring Boot 3 M5 the "org.springframework.boot.autoconfigure.EnableAutoConfiguration" auto-configurations registration from spring.factories file is no longer working. Released with 2.7 (https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.7-Release-Notes#new-autoconfiguration-annotation) a new file 'META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports' was introduced, however, for backwards compatibility, entries in spring.factories will still be honored.
The release notes for milestone 5 don't mention any changes related to removing the backward compatiblity or general auto-configuration changes at all.

After updating from milestone 4 to 5 the registrations from spring.factories file were no longer proccessed and I'd to replace it the new AutoConfiguration.imports file.

My question now is the removal of the backward compatiblity wanted but not documented or is it a bug?

@AihiAhazi AihiAhazi changed the title Spring Boot 3 mnilestone 5 EnableAutoConfiguration spring.factories Spring Boot 3 milestone 5 EnableAutoConfiguration spring.factories Oct 1, 2022
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 1, 2022
@philwebb
Copy link
Member

philwebb commented Oct 2, 2022

We cover it in the release notes here.

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

3 participants