org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class

来源:互联网 发布:雷霆vs勇士第六场数据 编辑:程序博客网 时间:2024/06/08 00:03
Context initialization failed
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [dxm.com.dao.UserDaoImp] for bean with name 'userDao' defined in class path resource [applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: dxm.com.dao.UserDaoImp
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1269)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:578)



spring 配置文件中 dxm.com.dao.UserDaoImp 地址没写对,应该是dxm.com.dao.imp.UserDaoImp

0 0
原创粉丝点击