Cannot find class for bean with name解决

来源:互联网 发布:uboot源码详解 编辑:程序博客网 时间:2024/05/16 10:16


org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [UserService] for bean with name 'UserService' defined in file 


解决:

Bean class是需要加包名路径的:

 

<beanclass="com.db.dao.XXXXXDao"id="cleaneddataDao"lazy-init="true">
   <propertyname="sessionFactory"ref="sessionFactory"></property>
</bean>


阅读全文
0 0
原创粉丝点击