转载地址:    https://blog.csdn.net/weixin_40797576/article/details/78796028

select from test where id<>1;

但是mybatis报错 <> 应该转义  &lt;&gt; 

select from test where id &lt;&gt; 1;

 

 

使用mybatis的时候,特殊字符,例如<,>,<>,.....

需使用以下进行转义

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

相关文章:

  • 2021-08-31
  • 2022-12-23
  • 2021-08-31
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
  • 2021-09-19
猜你喜欢
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2023-03-30
  • 2022-02-25
相关资源
相似解决方案