奋斗中的老青年 2019-06-10 10:12 采纳率: 0%
浏览 1979

Spring Boot yml配置mysql连接禁用SSL不起作用

项目启动警告: 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.

根据提示更改:
图片说明

重启项目不生效

  • 写回答

2条回答 默认 最新

  • Aubrey-J 2019-06-10 10:16
    关注

    the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false
    这句话中提示的意思是将verifyServerCertificate=false;useSSL=false,可以试试,我看你的图片中没有这俩

    评论

报告相同问题?

悬赏问题

  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机