SSM项目中遇到Could not autowire. No beans of ‘XXX‘ type found.错误

文章封面

写代码时候遇到了这个问题 Could not autowire. No beans of HeadLineService' type found. 在这里插入图片描述 提示这个错误,是因为在Service的实现类HeadLineServiceImpl中忘记在类的头部加注解@Service解决如下图。 在这里插入图片描述

评论

暂无评论