springboot报错,xxxService that could not be found

springboot报错

Field familyService in com.community.beshe.web.familyController required a bean of type ‘com.community.beshe.service.FamilyService’ that could not be found.
springboot报错,xxxService that could not be found

好像是说familyController类中没有找到FamilyService
springboot报错,xxxService that could not be found

解决方法:
在实现familyService的类中加上@Service
springboot报错,xxxService that could not be found

上一篇:关于Could not initialize class com.stone.lesson02.utils.JdbcUtils报错


下一篇:客户端启动连接本地mysql,错误提示plugin caching_sha2_password could not be loaded