错误1:

【SpringBoot】配置Mybatis错误
java.sql.SQLException: 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.

【SpringBoot】配置Mybatis错误
错误2:

【SpringBoot】配置Mybatis错误
ERROR 9316 — [nio-8080-exec-1] com.alibaba.druid.pool.DruidDataSource : init datasource error, url: jdbc:mysql://localhost:3306/springboottest?useUnicode=true&characterEncoding=utf-8?serverTimezone=GMT%2B8

java.sql.SQLException: Unsupported character encoding ‘utf-8?serverTimezone=GMT+8’
【SpringBoot】配置Mybatis错误
修正:
url: jdbc:mysql://localhost:3306/springboottest?useUnicode=true&serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8
【SpringBoot】配置Mybatis错误

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-13
  • 2022-12-23
  • 2021-07-28
  • 2021-12-01
  • 2021-10-21
猜你喜欢
  • 2021-09-22
  • 2022-12-23
  • 2021-07-07
  • 2021-06-22
  • 2021-10-24
  • 2022-12-23
相关资源
相似解决方案