bug fixed for compatible

This commit is contained in:
shaojin.wensj
2022-04-10 14:27:23 +08:00
parent 21d3488bbc
commit 51da2f16e5
@@ -45,6 +45,10 @@ public class MySqlValidConnectionChecker extends ValidConnectionCheckerAdapter i
private Method ping;
private boolean usePingMethod = false;
public MySqlValidConnectionChecker() {
this(false);
}
public MySqlValidConnectionChecker(boolean usePingMethod){
try {
clazz = Utils.loadClass("com.mysql.jdbc.MySQLConnection");