java.sql.SQLException: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation ‘=’
在使用mybatis向数据库中插入数据时报此错误信息,通过报错信息可以看到是字符编码混淆。
<insert id="addEmp" parameterType="com.mytest.mybatis.entity.Employee">
insert into tbl_employee ( last_name, email, gender, age) values