Cannot create PoolableConnectionFactory (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.)
【原因】时间无法识别
【解决方案】在连接mysql的url后添加:?serverTimezone=UTC即可
如:jdbc:mysql://127.0.0.1:3306/test?serverTimezone=UTC