The problem of escaping the greater than sign, less than sign, and equal sign of the SQL statement in the xml file

In xml, if you use the less than sign (<) or the less than or equal sign (<=), it must be escaped, and the rest may not be escaped. Because the < (less than) sign and > (greater than) sign in the Mapper.xml file will be considered parentheses.

Insert image description here

For example:

Insert image description here

Measures: Just <replace with&lt;

Guess you like

Origin blog.csdn.net/QinLaoDeMaChu/article/details/127302723