zoukankan      html  css  js  c++  java
  • XML中报错

    错误描述如下:

    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"

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

  • 相关阅读:
    权限管理命令
    常用命令2
    常用命令1
    queue
    poj 3984
    L3-008 喊山 (30 分)
    常州大学新生寒假训练会试 I 合成反应
    dfs 的全排列
    poj 1154
    hdu 1241
  • 原文地址:https://www.cnblogs.com/Alwaysbecoding/p/12324882.html
Copyright © 2011-2022 走看看