SSL is often confused by network libraries. It's like feelings for a girl who is aware of her existence.
Class.forName("com.mysql.jdbc.Driver");
I want to turn on SSL
jdbc:mysql://localhost:3306/database?verifyServerCertificate=false&useSSL=true
Enable SSL and do not check the certificate.
I want to turn it off
jdbc:mysql://localhost:3306/database?useSSL=false
http://www.sumimasen.com/tech/34189756.html
Recommended Posts