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.
在这里插入图片描述

好像是说familyController类中没有找到FamilyService
在这里插入图片描述

解决方法:
在实现familyService的类中加上@Service
在这里插入图片描述


版权声明:本文为weixin_43905468原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。