Tue Oct 11 15:53:15 CST 2022 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
The server time zone value is unrecognized
如果在db.url中加入&serverTimezone=UTC依旧报错的话
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/payment?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
username: root
password: abc123
考虑以下解决方案
在使用代码生成器,逆向生成代码(),一直报错时,其他的项目链接数据库无问题,数据库认为是不安全的连接。
在电脑的文件中找到这个配置文件my.ini修改里面的配置
在最后加上一句default-time_zone = '+8:00'
项目就能成功运行了