Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Annotation EnableAutoConfiguration does not work for spring boot 3

No beans get created when I use EnableAutoConfuguation for a self made plugin. If downgrade from spring boot 3.x to 2.7x it works as expected.

The annotation is not deprecated or deleted for spring-boot 3. So is it a bug or is there a new way and they just forgot depreciation?

like image 463
Dasma Avatar asked Oct 28 '25 22:10

Dasma


1 Answers

I found the solution through https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.7-Release-Notes#new-autoconfiguration-annotation Here is described how to setup spring factory the new way.

EnableAutoConfiguration is by mistake not deleted

like image 118
Dasma Avatar answered Oct 30 '25 22:10

Dasma