springboot项目连接mysql数据库报错

来源:互联网 发布:linux中telnet命令 编辑:程序博客网 时间:2024/04/28 00:45

报错内容:

You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.


原因是:高版本的mysql需要配置一下是否进行ssl链接

spring.datasource.url=jdbc:mysql://127.0.0.1:3306/springboot?characterEncoding=utf8&useSSL=true


1 0
原创粉丝点击