使用Spring的Service注入Dao接口需要注意的细节问题

来源:互联网 发布:windows窗口高级编程 编辑:程序博客网 时间:2024/06/07 13:40

 ... UserService] found for dependencyexpected at least 1 bean which qualifies as autowire candidate for this dependencyDependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)} at org.

在Service层注入Dao接口时调了半天调不出,把我郁闷的,后来改用Dao接口实现类就好了。此时我恍然大悟,原理Dao接口实现类没有

实现Dao接口--implements,受不了,这种低级错误还犯……

原创粉丝点击