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>