在写mysql的sql语句时,会用到>=或者<=

那么<=这个会被解析为xml的语法 (org.xml.sax.SAXParseException)

这样就会报错。

解决:

&lt; <
&gt; >

 

 

+ "<if test='total_price_b!=null  and  total_price_e!=null'>"
            + " and (total_price &gt;= #{total_price_b} and total_price &lt;= #{total_price_e})"
            + "</if>"

 

相关文章:

  • 2021-08-31
  • 2022-12-23
  • 2022-01-10
  • 2021-12-02
  • 2022-12-23
  • 2021-07-22
猜你喜欢
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案