После миграции на Spring Boot 3.0.0 с 2.7.0 не обнаруживаются бины

Вот такую ситуацию вижу с каждым бином, поставлю для теста required=false, дальше выскакивают остальные аннотации, по типу, entity, component, repository и т.д.

Подскажите, может кто-то сталкивался с подобным.

Сообщение об ошибке:

2023-10-30T10:46:49.792+02:00 WARN 1340 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'accountMapper': Unsatisfied dependency expressed through field 'coreModuleAccountMapper': No qualifying bean of type 'project.module.core.data.mapper.module.user.account.CoreModuleAccountMapper' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

***************************
APPLICATION FAILED TO START
***************************

Description:

Field imageRepository in project.module.file_storage.service.impl.ImageServiceImpl required a bean of type 'project.module.file_storage.repository.files.ImageRepository' that could not be found.

The injection point has the following annotations:
    - @org.springframework.beans.factory.annotation.Autowired(required=true)


Action:

Consider defining a bean of type 'project.module.file_storage.repository.files.ImageRepository' in your configuration. 

Ответы (1 шт):

Автор решения: Fetix

Для автоконфигураций теперь нужен META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports, но spring.factories все равно должны поддерживаться, на деле, нет

META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports в него заносятся пути ваших конфигурационных класов

→ Ссылка