错误描述如下:

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"

看出区别了吗,添加绿色部分即可!

最新文章

  1. ubuntu下安装mysql, eclipse, tomcat
  2. BZOJ 4531: [Bjoi2014]路径
  3. Linux与Windows文件传输实现
  4. 【转载】计算机视觉(CV)前沿国际国内期刊与会议
  5. PHP 生成随机浮点数
  6. [King.yue]Grid列选中JS控制按钮状态
  7. POJ 3414 Pots ( BFS , 打印路径 )
  8. ubuntu下安装tomcat和配置mysql
  9. Eclipse集成PDT+XDebug调试PHP脚本 https://svn.jcxsoftware.com/node?page=5 [转]
  10. JavaScript高级程序设计第14章表单脚本 (学习笔记)
  11. ubuntu 配置ftp服务器 vsftpd
  12. 一行一行分析JQ源码学习笔记-03
  13. Chapter 5 Blood Type——20
  14. Resource Allocation of Yarn
  15. 【Redis】yum安装redis
  16. 待实验的socketserver
  17. OpenGL矩阵变换,坐标空间变换
  18. 走你!Github 开源整合
  19. java旅程(一) 配置环境
  20. python爬取微信公众号

热门文章

  1. 基于MACVLAN配置VMWARE虚拟机中容器网络
  2. 【代码总结】GD库中简单的验证码
  3. Android的TextView在显示文字的时候,如果有段中文有英文,有中文,有中文标点符号,你会发现,当要换行的时候遇到中文标点, 这一行就会空出很多空格出来
  4. python笔记14
  5. Python之时间和日期模块
  6. jupyter配置 nbextension
  7. redis-key管理
  8. day3-1函数
  9. GO常量/枚举
  10. ES5-严格模式