Java mysql database connection appears The server time zone value 'й ׼ʱ' is unrecogni solution

Mysql Version : 8.0.17

When configured to add a data source MyBatis, added application.yml MySQL data source connection information file.

 

Run given class code generation, of The Time Zone Server value 'й ׼ʱ' IS out with unrecognized Within last One or More Represents by Time Zone.

 

 

 

Solution: database url in the configuration file to add serverTimezone = UTC parameter can be solved.

 

 

Guess you like

Origin www.cnblogs.com/guiyeku/p/11577623.html