- <property name="mappingDirectoryLocations">
- <list>
- <value>classpath:com/test/pojo/</value>
- </list>
- </property>
时会出现 cannot be resolved to absolute file path because it does not reside in the 。。。。错误
更改为如下便可以解决问题
- <property name="mappingLocations">
- <list>
- <value>classpath*:com/test/pojo/*.hbm.xml</value>
- </list>
- </property>
本文介绍了在配置文件中使用mappingDirectoryLocations属性时遇到的路径解析错误,并提供了解决方案,即将其替换为mappingLocations属性并指定具体的XML映射文件。
4万+

被折叠的 条评论
为什么被折叠?



