使用mybatis-pluse自带的insert方法时报错

我在用mybatis-plus自带的insert方法插入数据

问题相关代码,请勿粘贴截图
运行结果及报错内容

Error updating database. Cause: java.sql.SQLException: Incorrect string value: '\xE5\x8F\x91\xE9\x80\x81...' for column 'info' at row 1

The error may exist in com/five/learner/dao/SmsLogDao.java (best guess)

The error may involve com.five.learner.dao.SmsLogDao.insert-Inline

The error occurred while setting parameters

SQL: INSERT INTO t_sms_log ( type, phone, info, ctime ) VALUES ( ?, ?, ?, ? )

Cause: java.sql.SQLException: Incorrect string value: '\xE5\x8F\x91\xE9\x80\x81...' for column 'info' at row 1

; uncategorized SQLException; SQL state [HY000]; error code [1366]; Incorrect string value: '\xE5\x8F\x91\xE9\x80\x81...' for column 'info' at row 1; nested exception is java.sql.SQLException: Incorrect string value: '\xE5\x8F\x91\xE9\x80\x81...' for column 'info' at row 1] with root cause

我的解答思路和尝试过的方法

调整了数据库的字符集还是不行

我想要达到的结果

正常插入数据

数据库的字符集与insert语句中的参数值编码不一致。

数据库、表以及程序源码的字符集全部保持一致就不会出错

-- 设置数据库编码UTF-8
ALTER DATABASE 数据库名称 DEFAULT CHARACTER SET utf8;
-- 设置修改表以及字符字段编码为UTF-8
ALTER TABLE 数据库名称.表名称CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;

中文字符用utf8mb4