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/dbName?characterEncoding=utf-8