diff --git a/src/connector/jdbc/pom.xml b/src/connector/jdbc/pom.xml
index 841b0d3c748dddb862ae8393b85168d54b782bfd..36e2fa426b7647b4b2a3543ffa8470c310dc82b2 100755
--- a/src/connector/jdbc/pom.xml
+++ b/src/connector/jdbc/pom.xml
@@ -49,11 +49,6 @@
-
- org.apache.commons
- commons-lang3
- ${commons-lang3.version}
-
junit
junit
diff --git a/src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBDriver.java b/src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBDriver.java
index c356df8bf7587d79958e904c1eacd70ae7284c42..bc649a31e1e4c56289284885a73469695ae4eae2 100755
--- a/src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBDriver.java
+++ b/src/connector/jdbc/src/main/java/com/taosdata/jdbc/TSDBDriver.java
@@ -15,8 +15,6 @@
package com.taosdata.jdbc;
-import org.apache.commons.lang3.StringUtils;
-
import java.io.*;
import java.sql.*;
@@ -246,7 +244,7 @@ public class TSDBDriver implements java.sql.Driver {
}
public boolean acceptsURL(String url) throws SQLException {
- return StringUtils.isNotBlank(url) && url.startsWith(URL_PREFIX);
+ return (url != null && url.length() > 0 && url.trim().length() > 0) && url.toLowerCase().startsWith(URL_PREFIX);
}
public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException {
@@ -293,7 +291,8 @@ public class TSDBDriver implements java.sql.Driver {
return null;
}
- if (!StringUtils.startsWithIgnoreCase(url, URL_PREFIX) && !StringUtils.startsWithIgnoreCase(url, URL_PREFIX1)) {
+ String lowerUrl = url.toLowerCase();
+ if (!lowerUrl.startsWith(URL_PREFIX) && !lowerUrl.startsWith(URL_PREFIX1)) {
return null;
}