再做一个小项目debug的时候,发现这个bug:
java.sql.SQLException: Illegal mix of collations (latin5_turkish_ci,IMPLICIT) and (gb2312_chinese_ci,COERCIBLE) for operation 'like'
可以查看对应的字段的字符编码是什么然后改为 “gb2312”字符编码即可。