Home  >  Article  >  Backend Development  >  Detailed introduction to Mybatis's method of handling greater than and less than signs in Xml

Detailed introduction to Mybatis's method of handling greater than and less than signs in Xml

黄舟
黄舟Original
2017-03-11 17:39:322736browse


The first type is to escape the characters

in the Mybatis configuration Xml file. Strictly speaking, The only characters "0965921bb5f2df9ef0e9dbbdd83db1ab > is greater than ##& & and ' 'single quotes " “Double quotes

##Second Kind, CDATA

CDATA refers to text data (Unparsed Character Data) that should not be parsed by the XML parser. Everything in the CDATA section is ignored by the parser. The CDATA part starts with

837a5bbf69365769eaa2f258eae026ae. Here is an example:

##Second type, CDATA
<![CDATA[ when min(starttime)<=&#39;12:00&#39; and max(endtime)<=&#39;12:00&#39; ]]>
Comments on the CDATA part

:

The CDATA part cannot contain
String

"]]>". Nested CDATA sections are also not allowed. The "]]>" marking the end of the CDATA section cannot contain spaces or line breaks.

The above is the detailed content of Detailed introduction to Mybatis's method of handling greater than and less than signs in Xml. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn