Commit 64ddb343 authored by Quxl's avatar Quxl

x

parent c8adc02e
......@@ -76,13 +76,14 @@
<version>262</version>
</dependency>
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
</dependency>
<dependency>
<groupId>net.sourceforge.jtds</groupId>
<artifactId>jtds</artifactId>
</dependency>
<groupId>com.sybase</groupId>
<artifactId>jdbc</artifactId>
<version>4</version>
</dependency>
</dependencies>
<build>
<plugins>
......
......@@ -58,6 +58,8 @@ public class SqlTestController {
driverClass = "com.mysql.jdbc.Driver";
} else if(jdbcUrl.contains("sqlserver")) {
driverClass = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
} else if(jdbcUrl.contains("sybase")) {
driverClass = "com.sybase.jdbc4.jdbc.SybDriver";
} else {
throw new XRException("URL无法识别, 没有对应的驱动程序");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment