Establishing SSL connection without server's identity verification is not recommended. According to

时间:2022-04-24
本文章向大家介绍Establishing SSL connection without server's identity verification is not recommended. According to ,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

Spring boot 启动提示:

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 expl

解决方法:

加入两个参数,如下

spring.datasource.url=jdbc:mysql://localhost:3306/testDemo?autoReconnect=true&useSSL=false