spring整合hibernate时,只需要扫描一个包下的问件时:
<span style="white-space:pre"> </span><!-- 映射文件的位置 -->
<property name="mappingDirectoryLocations" value="classpath:entity">
</property>
需要扫描不同包下的文件时:
<!-- 映射文件的位置 -->
<property name="mappingDirectoryLocations">
<list>
<value>classpath:entity</value>
<value>classpath:com.kingdee.cloud.task.entity</value>
</list>
</property>