直接导入资料中的项目,index 页面报错

wx_uyok5di7 用 SpringMVC+MyB... 最后由 wx_uyok5di7 于2017年10月23日回复

  • 1 回答
  • 750 浏览

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fetchController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tableIpService': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.jikexueyuan.demo.dao.ITableIpDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.annotation.Resource(shareable=true, mappedName=, description=, name=, type=class java.lang.Object, lookup=, authenticationType=CONTAINER)}

  • wx_uyok5di7 2017年10月23日 回答 #1楼
  • 先前 我自己按照视频自己搭建了一个项目,但是报错 dao的bean不能实例化,于是直接导入资料里的项目,修改数据库连接,然后启动tomcat,输入网址http://localhost:8081/demo/后直接报错。

  • 0 评论