我在开发Spring Boot项目时遇到了一个棘手的问题,项目启动时提示一个类注入失败,检查后发现所有类都无法被扫描到。错误信息显示‘A component required a bean of type 'com.ufofc.cloud.module.base.api.exceptions.dto.BaseExceptionLabelsDTO' that could not be found.’。尝试了一些方法但未解决问题,希望能得到大佬们的帮助。
新建的服务 一直提示一个类注入失败 后来发现好像所有类都无法扫描到
***************************
APPLICATION FAILED TO START
***************************
Description:
A component required a bean of type 'com.ufofc.cloud.module.base.api.except...