org.hibernate.MappingNotFoundException: resource:**.hbm.xml not found
程序员文章站
2022-04-12 18:00:38
...
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.xml</include>
<include>**/*.properties</include>
</includes>
</resource>
</resources>
</build>
原因:Maven工程,编译的工作是由Maven程序来完成的,而Maven默认只会把src/main/resources文件夹下的文件拷贝到target/classes文件夹下
解决:将上段代码添加到pom文件中
上一篇: org.hibernate.InvalidMappingException: Could not parse mapping document from resource *
下一篇: Node.js在Qzone的演进
推荐阅读
-
打开文件报“EFailed to load resource: net::ERR_FILE_NOT_FOUND”错误
-
No resource found that matches the given name: attr 'android:keyboardNavigationCluster'
-
values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the
-
nginx访问localhost:80端口被占用并提示HTTP Error 404. The requested resource is not found
-
打开文件报“EFailed to load resource: net::ERR_FILE_NOT_FOUND”错误
-
file_get_contents请求url接口,出现“request resource is not found”
-
vue打包:Failed to load resource: net::ERR_FILE_NOT_FOUND问题
-
file_get_contents请求url接口,出现“request resource is not found”
-
No resource found that matches the given name: attr 'android:keyboardNavigationCluster'
-
org.hibernate.MappingNotFoundException: resource:**.hbm.xml not found