web123456

Java Backend Development (IV) -- Detailed explanation of the use of MySql | <![CDATA[ ]]>

CDATA(Unparsed Character Data)

                Refers to text data that should not be parsed by an XML parser.

reason:

Since XML files are illegal for elements "<" and "&" and do not comply with the rules.

Right now,The error of "<" is because the parser interprets the character as the beginning of a new element.
The error of "&" is caused because the parser interprets the character as the beginning of the character entity.

Therefore,mapperWhen writing SQL statements in a file, when encountering special characters, such as: <, etc., it is recommended to use <![CDATA[ ..... ]]>, do not parse the packaged content by the parser.