4000 org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [XXX.xml]';
2017-02-13 17:30
447 查看
tomcat启动时报错:
由于在mapper中用了不正确的字符
例如:
这里应该使用
在 XML 中有 5 个预定义的实体引用:
或者使用XML CDATA
Caused by: org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [XXX.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 186; columnNumber: 32; 在实体引用中, 实体名称必须紧跟在 '&' 后面。
由于在mapper中用了不正确的字符
例如:
这里应该使用
<if test="SALER_NAME!=null and SALER_NAME!=''"> and INSTR(i.saler_name,#{SALER_NAME}) </if>
在 XML 中有 5 个预定义的实体引用:
< < 小于 > > 大于 & & 和号 ' ' 省略号 " " 引号
或者使用XML CDATA
相关文章推荐
- eclipse中用Hibernate进行一对多级联报错 Could not parse mapping document from resource oneToMore/Grade.hbm.xml
- idea报错。Error:Failed to load project configuration: cannot parse xml file E:\project\.idea\workspace.xml: Error on line 1: 前言中不允许有内容。
- mybatis运行返回Failed to parse mapping resource
- IDEA | Error:Failed to load project configuration:xxx cannot read file .idea/misc.xml
- Failed to parse mapping resource......
- Unity3d游戏中添加移动MM支付SDK问题处理(failed to find resource file(mmiap.xml})
- mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file ".\Rel
- ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn
- Oracle: failed to parse tnsnames.ora file
- Unable to parse request org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. null
- Could not parse mapping document from resource XX.xml 错误! 这是我找到的最符合的结果
- 解决error 25541 failed to open xml fileC:\Windows\Microsoft.NET\Framework64\v2.0.50727\CONFIG\machine
- org.hibernate.MappingNotFoundException: resource: xxx.hbm.xml not found
- PowerDesigner打开设计文件后提示failed to read the fileXXX的解决方法
- Could not parse mapping document from resource cn/spt/model/Student.hbm.xml
- Caused by: org.springframework.core.NestedIOException: ASM ClassReader failed to parse class file
- Error Domain=ASIHTTPRequestErrorDomain Code=8 "Failed to move file from"xxx/xxx"to"xxx/xxx"
- XCode报错 error: failed to launch “XXX.app”-- No such file or directory (XXXXXX)解决方法
- How to parse XML file using CParser class
- adb push错误 failed to copy XXX.ko' to '/system/lib/modules/XXX.ko': Read-only file system