org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [UserService] for bean with name 'UserService' defined in file
解决:
Bean class是需要加包名路径的:
<bean
class="com.db.dao.XXXXXDao"
id="cleaneddataDao"
lazy-init="true">
<property
name="sessionFactory"
ref="sessionFactory"></property>
</bean>