这对我来说没问题:
this.conn = (Connection)DriverManager .getConnection(url + dbName + "?useSSL=false", userName, password);