-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not autowire. No beans of 'CityDao' type found. #3
Comments
which 子工程? |
springboot-learning-example/springboot-mybatis/ |
mvn clean install -U .估计没打包好 |
是ideal的问题,运行是没有问题的. 但是就是会有红线提示比较讨厌. |
http://www.cnblogs.com/zhangdong92/p/6986653.html |
你的解决了吗,我也是这个问题,如果解决请告知 |
感觉是up代码写的有些问题。 |
我这边运行 执行报错,提示如下: Field cityDao in net.cc.restful.service.impl.CityServiceImpl required a bean of type 'net.cc.restful.dao.CityDao' that could not be found. Action: Consider defining a bean of type 'net.cc.restful.dao.CityDao' in your configuration. |
fix |
dao层加@repository |
邮件已收到祝好 徐铭
|
已收到 ,谢谢
|
来信已收到,非常感谢
|
这是来自QQ邮箱的假期自动回复邮件。王绅杰 收到,谢谢~
|
已收到 ,谢谢
|
来信已收到,非常感谢
|
你好,我clone了你的项目,发现在idea下 package org.spring.springboot.service.impl 中的 @Autowired
private CityDao cityDao;
出现了Could not autowire. No beans of 'CityDao' type found. 提示,不知是什么原因。
The text was updated successfully, but these errors were encountered: