You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification. 1:admin 解決辦法 在配置數(shù)據(jù)庫的URL時,加上usessl=false就可以了。 添加前 添加后 附上Configuration.xml代碼 1 2 3 4 5 6 7 8 9 10 11 12 13 ...
如果你不需要使用SSL連接,你需要通過設置useSSL=false來顯式禁用SSL連接。 如果你需要用SSL連接,就要為服務器證書驗證提供信任庫,并設置useSSL=true。 SSL – Secure Sockets Layer(安全套接層) Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is com.mysql.cj.jdbc.Driver...