解决jdbc驱动乱码Caused by: com.mysql.cj.core.exceptions.InvalidConnectionAttributeException

完整错误提示如下:

Caused by: com.mysql.cj.core.exceptions.InvalidConnectionAttributeException: The server time zone value '?????????±?????????±???¤' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.


解决办法:

其中的&为特殊字符,需要转义为(&),用括号里的代替&


你可能感兴趣的:(异常处理)