0
点赞
收藏
分享

微信扫一扫

at least 1 bean which qualifies as autowire candidate

googlefrank 2023-05-15 阅读 73



我的报错在在controller包的Controller类,就是:
@Autowired
private IHelloService helloService;
这里会报错,后来看到这个文章的提示,检查了一下component-scan,才发现没有对com.services.imple进行扫描,加上去就解决了。

<context:component-scan base-package="com.controller,com.services.impl,com.dao.impl,com.pojo" />

举报

相关推荐

0 条评论