Unknown initial character set index '255' received from server. Initial client character 解决方法

在配置mybatis时出现错误java

Cause: java.sql.SQLException: Unknown initial character set index ‘255’ received from server. Initial client character set can be forced via the ‘characterEncoding’ property.

看了一下其余博主的文章,原来是字符集设置出现问题mysql

若是写成jdbc:mysql://localhost:3306/ssm就会出现问题
解决该问题的写法是:jdbc:mysql://localhost:3306/ssm?useUnicode=true&characterEncoding=utf8web