Commit 64ddb343 authored by Quxl's avatar Quxl

x

parent c8adc02e
......@@ -80,8 +80,9 @@
<artifactId>mssql-jdbc</artifactId>
</dependency>
<dependency>
<groupId>net.sourceforge.jtds</groupId>
<artifactId>jtds</artifactId>
<groupId>com.sybase</groupId>
<artifactId>jdbc</artifactId>
<version>4</version>
</dependency>
</dependencies>
<build>
......
......@@ -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