... UserService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)} at org.
在Service层注入Dao接口时调了半天调不出,把我郁闷的,后来改用Dao接口实现类就好了。此时我恍然大悟,原理Dao接口实现类没有
实现Dao接口--implements,受不了,这种低级错误还犯……
或者没有service的实现类