springboot项目连接mysql数据库报错

    xiaoxiao2021-03-25  147

    报错内容:

    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

    转载请注明原文地址: https://ju.6miu.com/read-9773.html

    最新回复(0)