我出现这个错误是因为在我的spring配置文件中
扫描UserDao所在的包名(com.xx.xx.dao)写错,所以不能将UserDao放到IOC容器中.在使用@Autowired注解时在容器中找不到
就会出现"No qualifying bean of type [com.xx.xx.manager.dao.UserDao] 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)}"错误提示信息.