WARN: Establishing SSL connection without server
source: http://blog.itpub.net/27099995/viewspace-2121216/
菜鸟开始自学java,很多东西不会,瞎搞!
遇见一个问题解决一个!
Wed Jun 29 17:59:32 CST 2016 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.
一开始看到是Warn,所以可以不用理会,但是作为入门都不够格的我,看着别扭啊!
原因是MySQL在高版本需要指明是否进行SSL连接。
我的MySQL是:5.7.11 算是最新版本的了。
解决方案如下:
在url后面加上: ?characterEncoding=utf8&useSSL=true
遇见一个问题解决一个!
Wed Jun 29 17:59:32 CST 2016 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.
一开始看到是Warn,所以可以不用理会,但是作为入门都不够格的我,看着别扭啊!
原因是MySQL在高版本需要指明是否进行SSL连接。
我的MySQL是:5.7.11 算是最新版本的了。
解决方案如下:
在url后面加上: ?characterEncoding=utf8&useSSL=true