Search code examples
springspring-boot

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?


Solution

  • 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