connection sécurisée déactivation
Bonjour,
Je travail sous Fedora 27, MySql 5.7 et apache 9.0.2, mon problème c'est pendant la compilation Eclipse oxygen établit une connection sécurisée.
Je ne veut pas pour le moment de connection sécurisée.
voici le output de mon Tomcat pendant la compilation :
Code:
1 2 3 4 5
| janv. 31, 2018 9:48:58 PM org.apache.coyote.AbstractProtocol start
INFOS: Starting ProtocolHandler ["ajp-nio-8009"]
janv. 31, 2018 9:48:58 PM org.apache.catalina.startup.Catalina start
INFOS: Server startup in 2584 ms
Wed Jan 31 21:49:12 CET 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. |
comment puis je mettre "useSSL=false" pour mon project ?
voici mon code de loaddatabase :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| private void loadDatabase() {
// Chargement du driver
try {
Class.forName("com.mysql.jdbc.Driver");
} catch (ClassNotFoundException e) {
}
try {
connexion = DriverManager.getConnection("jdbc:mysql://localhost:3306/javaee", "root", "");
} catch (SQLException e) {
e.printStackTrace();
}
} |