转载简书:https://www.jianshu.com/p/a164d582e5d9

  1. 主要是因为驱动配置变了driver中得用com.mysql.cj.jdbc.Driver,多了个cj;

  2. url后面serverTimezone=UTC必须加

  3. 驱动包最好也更新到最新版
1 jdbc.drver=com.mysql.cj.jdbc.Driver
2 jdbc.url=jdbc:mysql://localhost:3306/dbname?useUnicode=true&useSSL=false&serverTimezone=UTC
3 jdbc.username=root
4 jdbc.password=123456

 

相关文章:

  • 2022-12-23
  • 2021-08-13
  • 2021-07-09
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
  • 2021-12-09
  • 2021-11-29
猜你喜欢
  • 2022-12-23
  • 2021-05-17
  • 2022-12-23
  • 2021-12-14
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案