具体问题:
[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.2:generate (default-cli) on project demo: 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]
解决:在连接数据库路径后面加上时区的设置

jdbc:mysql://localhost:3306/test?serverTimezone=UTC
解决MyBatisGenerator时区错误
本文介绍了一个关于MyBatis Generator插件在运行时遇到的时区配置问题,详细解释了错误信息中提到的时区配置不明确的问题,并提供了一个简单的解决方案,即在数据库连接字符串中添加正确的时区参数。
1万+

被折叠的 条评论
为什么被折叠?



