【发布时间】:2020-12-13 05:36:24
【问题描述】:
我遇到了一个我无法理解的问题,那就是:
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of method setApplicant in webService.controller.RequestController required a bean of type 'com.service.applicant.Applicant' that could not be found.
Action:
Consider defining a bean of type 'com.service.applicant.Applicant' in your configuration.
我已经做了一些研究,但我仍然无法解决这个问题,我只是从我的主应用程序类中删除了 @ComponentScan 并且它起作用了。
我删除了:
//@ComponentScan(basePackageClasses = AdminController.class)
一切都很好,但我很好奇...有人可以帮帮我吗?
【问题讨论】:
-
你需要显示你项目的主包和子包结构
标签: java spring spring-boot java-web-start