add mysql-driver 6.0.x support

This commit is contained in:
wenshao
2016-08-07 11:37:02 +08:00
parent d7f426f228
commit 4838786d6a
3 changed files with 34 additions and 6 deletions
@@ -45,6 +45,10 @@ public class MySqlValidConnectionChecker extends ValidConnectionCheckerAdapter i
public MySqlValidConnectionChecker(){
try {
clazz = Utils.loadClass("com.mysql.jdbc.MySQLConnection");
if (clazz == null) {
clazz = Utils.loadClass("com.mysql.cj.jdbc.ConnectionImpl");
}
if (clazz != null) {
ping = clazz.getMethod("pingInternal", boolean.class, int.class);
}