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

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