SSM项目中遇到Could not autowire. No beans of ‘XXX‘ type found.错误
文章目录
写代码时候遇到了这个问题
Could not autowire. No beans of HeadLineService' type found.
提示这个错误,是因为在Service的实现类HeadLineServiceImpl中忘记在类的头部加注解@Service解决如下图。

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

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论