错误提示:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext-base.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Association references unmapped class: com.hr.ssh.product.bean.Types
解决方法:
把映射文件加到hibernate映射里面去
<!-- 映射文件 -->
<property name="mappingResources">
<list>
<value>com\hr\ssh\product\bean\Classes.hbm.xml </value>
<value>com\hr\ssh\product\bean\Types.hbm.xml </value>
</list>
</property>