NutzCN Logo
问答 nutzboot如何配置mysql的ssl
发布于 2195天前 作者 文涛(wentao) 1703 次浏览 复制 上一个帖子 下一个帖子
标签:

现在项目启动没问题,但貌似mysql版本需要指定是否开启ssl
日志如下:

Sun Apr 22 19:55:21 CST 2018 WARN: 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.

请问可以通过配置文件配置吗

3 回复

jdbc.url里面加配置,跟设置编码一样的套路
不过我自己从没理会过这个警告

@wendal nutz 和 nutzboot 在启动的时候有一定几率卡在这里, 要在url中设置为false之后才能启动.

卡?我没遇过,打印的最后一条日志是这个警告?用的是druid?maxWait设置了没

添加回复
请先登陆
回到顶部