Spring Boot项目启动失败,类注入异常如何解决

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

芋道快速开发平台 Boot + Cloud

星球已运营 4 年零 211 天

累计超过  34000+  位成员加入

6小时前

最近更新

40000+

内容数

进入星球主页