mybatis中xml的sql之test中文报错

在mybatis中sql,test中文报错( java.lang.NumberFormatException 这句话明确告诉了我们是数字格式异常)。需加.tostring().

<if test="bookName == ‘毛选集’.tostring() ">
	and b.book_Name like #{bookName} 
</if> 

  

原文地址:https://www.cnblogs.com/ckxlovejava/p/6683453.html