spring +mybatis 出现The content of elements must consist of well-formed character data or markup 解决
出现如下异常:
nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:naviserversrcSSVImageBackupBatchbinjppioneerncsssvresourcescommonmybatisImageMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause: org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup.
在ibatis的映射文件中出现了特殊字符的情况下会出现以上错误。
特殊字符有: < 小于号 ,>大于号等
要用
<![CDATA[
select * from tb_users where id<=100
]]>
包裹着。
来源://作者:/更新时间:2012-12-19
顶
踩
相关文章:
- springmvc form表单提交后台对象获取不到值(解决)
- springmvc form提交使用@ModelAttribute后台取得乱码
- eclipse 控制台不显示_eclipse console没有了如何让其
- eclipse 设置修改tomcat的编译发布目录
- 解决 Tomcat v7.0 Server at localhost was unable to
- (解决) springmvc jsp界面显示乱码 spring+mybatis+my
- org.apache.ibatis.builder.BuilderException: Error
- java.util.concurrent.ExecutionException: Failed to
- 【servlet3.0新特性】文件上传改进API 实例
- 【servlet3.0新特性】异步监听器实例