The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone.
[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.5:generate (default-cli) on project miaosha: 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. -> [Help 1]
解决方法:加上?serverTimezone=GMT,加入位置如下所示:
<!--数据库链接地址账号密码--> <jdbcConnection driverClass="com.mysql.jdbc.Driver" connectionURL="jdbc:mysql://127.0.0.1:3306/miaosha?serverTimezone=GMT" userId="root" password="123456"> </jdbcConnection>