连接mysql时,出现如下异常:
org.springframework.jdbc.CannotGetJdbcConnectionException:
Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException:
Cannot create PoolableConnectionFactory (Unknown initial character set index '224' received from server.
Initial client character set can be forced via the 'characterEncoding' property.)
如果你用的是Java服务器,升级或确保你的mysql connector版本高于5.1.13即可
我用的是8.0.11,亲测有效!