配置如下,一直报错:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userService': Unsatisfied dependency expressed through field 'userDao'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.lrto.module.dao.UserDao' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)},求各位大神指教
mapperlocations value ="classpath*:mapping/*.xml" 这样写试一下
UserDao.xml 里 resulttype 应该写全类名把
那个接口UserDao
不需要加注解吧
namespace路径错误吧