springMVC+spring3.2.3+mybatis3启动tomcat报异常???

so_co 发布于 2014/03/05 15:32
阅读 959
收藏 0

Error creating bean with name 'personBizImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.springmvc.dao.PersonDao com.springmvc.biz.impl.PersonBizImpl.personDao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'personDaoImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.springmvc.mapper.PersonMapper com.springmvc.dao.impl.PersonDaoImpl.mapper; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.springmvc.mapper.PersonMapper] 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)}

觉得是注入时的问题,请大牛指导????

加载中
0
chenzhaoyang
chenzhaoyang
personBizImpl注入失败,是不是名字写错了
0
歇蹩虎子
歇蹩虎子

No qualifying bean of type [com.springmvc.mapper.PersonMapper] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency.

容器中没有PersonMapper类型的bean. 是不是PersonMapper没加注解啊.

返回顶部
顶部