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

[ISSUE] Custom spring boot starter tutorial relies on deprecated spring behaviour #17744

Open
dpeger opened this issue Oct 2, 2024 · 0 comments
Labels
on-jira triaged Issues reviewed by a dev and considered valid. Will be added in Jira.

Comments

@dpeger
Copy link

dpeger commented Oct 2, 2024

Article and Module Links
https://www.baeldung.com/spring-boot-custom-starter
https://github.com/eugenp/tutorials/tree/master/spring-boot-modules/spring-boot-custom-starter

Describe the Issue
The tutorial still uses the deprecated spring.factories approach to configure a custom spring boot starter. Starting with Spring boot 2.7 this has been replaced by the spring\org.springframework.boot.autoconfigure.AutoConfiguration.imports file without backwards compatibility. See https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#auto-configuration-files

To Reproduce

  • Create a starter based on the tutorial
  • Try to use the starter
  • Won't work

Expected Behavior
Starter should work with recent spring boot versions

@dpeger dpeger changed the title [ISSUE] [ISSUE] Custom spring boot starter tutorial relies on deprecated spring behaviour Oct 2, 2024
@apeterlic apeterlic added the triaged Issues reviewed by a dev and considered valid. Will be added in Jira. label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
on-jira triaged Issues reviewed by a dev and considered valid. Will be added in Jira.
Projects
None yet
Development

No branches or pull requests

3 participants