XML中报错
2024-08-29 22:41:44
错误描述如下:
Multiple annotations found at this line:
- cvc-complex-type.2.4.a: Invalid content was found starting with element 'mapping-file'. One of '{"http://xmlns.jcp.org/xml/ns/persistence":shared-
cache-mode, "http://xmlns.jcp.org/xml/ns/persistence":validation-mode, "http://xmlns.jcp.org/xml/ns/persistence":properties}' is expected.
- Mapping file "orm-namedquery-config.xml" cannot be resolved.
解决前代码片段
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
解决后代码片段
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance http://www.springmodules.org/schema/cache/springmodules-cache.xsd http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd"
看出区别了吗,添加绿色部分即可!
最新文章
- ubuntu下安装mysql, eclipse, tomcat
- BZOJ 4531: [Bjoi2014]路径
- Linux与Windows文件传输实现
- 【转载】计算机视觉(CV)前沿国际国内期刊与会议
- PHP 生成随机浮点数
- [King.yue]Grid列选中JS控制按钮状态
- POJ 3414 Pots ( BFS , 打印路径 )
- ubuntu下安装tomcat和配置mysql
- Eclipse集成PDT+XDebug调试PHP脚本 https://svn.jcxsoftware.com/node?page=5 [转]
- JavaScript高级程序设计第14章表单脚本 (学习笔记)
- ubuntu 配置ftp服务器 vsftpd
- 一行一行分析JQ源码学习笔记-03
- Chapter 5 Blood Type——20
- Resource Allocation of Yarn
- 【Redis】yum安装redis
- 待实验的socketserver
- OpenGL矩阵变换,坐标空间变换
- 走你!Github 开源整合
- java旅程(一) 配置环境
- python爬取微信公众号