javaweb基础----使用c3p0数据库连接池时警告的处理

mysql版本:5.7

使用c3p0连接池时弹出警告:

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 app

处理方法:

在c3p0-config.xml文件中作出如下改动:

<property name="jdbcUrl">jdbc:mysql://127.0.0.1:3306/xxx?useSSL=false</property>

 

先想再做,不想不做。
原文地址:https://www.cnblogs.com/cjasonvincent/p/8630339.html