mybatis:The content of elements must consist of well-formed character data or markup
2014-05-06 11:33
741 查看
今天写了一个SQL语句,放入工程
[sql] view
plaincopy
![](https://oscdn.geek-share.com/Uploads/Images/Content/201611/a7c8e286f463007e2a900848b93dd72c.png)
![](https://oscdn.geek-share.com/Uploads/Images/Content/201611/9e12f1d3e499fc949c886e7c9e0484f9)
SELECT *
FROM GR_EDUCATION_BACKGROUND
WHERE SYSDATE - decode(eb_end_date, null, sysdate, EB_END_DATE) < 730
报错,The content of elements must consist of well-formed character data or markup
经查mybatis不能有小于号,把代码更换成
[sql] view
plaincopy
![](https://oscdn.geek-share.com/Uploads/Images/Content/201611/a7c8e286f463007e2a900848b93dd72c.png)
![](https://oscdn.geek-share.com/Uploads/Images/Content/201611/9e12f1d3e499fc949c886e7c9e0484f9)
SELECT *
4000
FROM GR_EDUCATION_BACKGROUND
WHERE 730 > SYSDATE - decode(eb_end_date, null, sysdate, EB_END_DATE)
错误消失
[sql] view
plaincopy
![](https://oscdn.geek-share.com/Uploads/Images/Content/201611/a7c8e286f463007e2a900848b93dd72c.png)
SELECT *
FROM GR_EDUCATION_BACKGROUND
WHERE SYSDATE - decode(eb_end_date, null, sysdate, EB_END_DATE) < 730
报错,The content of elements must consist of well-formed character data or markup
经查mybatis不能有小于号,把代码更换成
[sql] view
plaincopy
![](https://oscdn.geek-share.com/Uploads/Images/Content/201611/a7c8e286f463007e2a900848b93dd72c.png)
SELECT *
4000
FROM GR_EDUCATION_BACKGROUND
WHERE 730 > SYSDATE - decode(eb_end_date, null, sysdate, EB_END_DATE)
错误消失
相关文章推荐
- Mybatis 异常: The content of elements must consist of well-formed character data or markup
- mybatis异常:The content of elements must consist of well-formed character data or markup.
- mybatis的xml配置文件出现The content of elements must consist of well-formed character data or markup.
- mybatis在xml中处理大于号,解决The content of elements must consist of well-formed character data or markup
- Mybatis 异常: The content of elements must consist of well-formed character data or markup
- Mybatis 异常: The content of elements must consist of well-formed character data or markup
- MyBatis报错:The content of elements must consist of well-formed character data or markup.
- Mybatis 异常: The content of elements must consist of well-formed character data or markup
- Mybatis 异常: The content of elements must consist of well-formed character data or markup
- mybatis 提示The content of elements must consist of well-formed character data or markup
- mybatis 提示The content of elements must consist of well-formed character data or markup
- The content of elements must consist of well-formed character data or markup
- ibatiS启动的异常 The content of elements must consist of well-formed character data or markup
- The content of elements must consist of well-formed character data or markup
- ibatis遇到错误:The content of elements must consist of well-formed character data or markup
- The content of elements must consist of well-formed character data or markup 或 The value of attribu
- xml文件报错 :The content of elements must consist of well-formed character data or markup.
- JSF遭遇XML解析错误The content of elements must consist of well-formed character data or markup
- The content of elements must consist of well-formed character data or markup.
- The content of elements must consist of well-formed character data or markup