返回顶部

一缕半夏微光

温柔半两,从容一生

导航

mybatis 中 SQL 写在mapper.xml文件中,而xml解析 < 、>、<=、>= 时会出错 的解决办法

mybatis 中 SQL 写在mapper.xml文件中,而xml解析 < 、>、<=、>= 时会出错,这时应该使用转义写法。

< <= > >= & ' "
&lt; &lt;= &gt; &gt;= &amp; &apos; &quot;

参考链接:MyBatis中大于和小于号的转义写法

posted on 2022-03-19 21:24  一缕半夏微光  阅读(231)  评论(0)    收藏  举报