Field XXX in XXXX required a bean of type XXXX that could not be found.
最近学习springboot,今天写到service层。起项目的时候报Field XXX in XXXX required a bean of type XXXX that could not be found.错。原来是找不到该类。是怎么回事呢?查资料后发现是包结构的事,项目启动时,只有@SpringBootApplication 所在的包被被扫描。而我报错的类不在@SpringBootApp...
转载
2019-01-09 11:09:18 ·
21365 阅读 ·
0 评论