导入/创建springboot项目时可能出现的问题
1.运行项目连接Mysql时出现警告Establishing SSL connection without server‘s identity verification is not recommende
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.
在你连接数据库的url后面加上参数即可,例如:
jdbc:mysql://localhost:3306/testdb?useSSL=false
https://blog.csdn.net/qq_41785135/article/details/85118329
2.SpringBoot下application配置文件连接mysql8.0
#数据库配置
spring.datasource.driverClassName = com.mysql.cj.jdbc.Driver
spring.datasource.url = jdbc:mysql://localhost:3306/test?characterEncoding=utf-8&serverTimezone=UTC&useSSL=false
https://blog.csdn.net/Eldbro/article/details/107089117
3.the server time zone value 'Öйú±ê׼ʱ¼ä' is unrec
在语句"jdbc:mysql://localhost:3366/stujdbc “后添加”?serverTimezone=GMT%2B8"
https://blog.csdn.net/m0_37822490/article/details/100940070

浙公网安备 33010602011771号