Commit 4408f7db authored by Quxl's avatar Quxl

x

parent 3e6215d1
......@@ -56,15 +56,9 @@ public class SqlTestController {
driverClass = "com.mysql.jdbc.Driver";
} else if(jdbcUrl.contains("sqlserver")) {
driverClass = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
// } else if(jdbcUrl.contains("oracle")) {
// driverClass = "oracle.jdbc.driver.OracleDriver";
} else {
throw new XRException("URL无法识别, 没有对应的驱动程序");
}
dataSource.setUsername(username);
dataSource.setPassword(password);
dataSource.setUrl(jdbcUrl);
......
......@@ -19,9 +19,6 @@
<el-form-item>
<el-input size="mini" placeholder="URL" v-model="form.jdbcUrl" style="width:584px;"></el-input>
</el-form-item>
<el-form-item>
<el-input size="mini" placeholder="DriverClass" v-model="form.driverClass" style="width:300px;"></el-input>
</el-form-item>
<el-form-item>
<el-input size="mini" placeholder="Username" v-model="form.username"></el-input>
</el-form-item>
......
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