fix(系统设置): 修复jdk17连接SQL server数据库失败的缺陷
--bug=1025012 --user=王孝刚 【接口测试】升级后,环境配置中连接SQL server数据库失败 https://www.tapd.cn/55049933/s/1358408
This commit is contained in:
parent
95f80e8dde
commit
662e8e28c3
|
@ -209,7 +209,7 @@ export default {
|
|||
if (type === 'com.mysql.jdbc.Driver') {
|
||||
this.currentConfig.dbUrl = 'jdbc:mysql://127.0.0.1:3306/database';
|
||||
} else if (type === 'com.microsoft.sqlserver.jdbc.SQLServerDriver') {
|
||||
this.currentConfig.dbUrl = 'jdbc:sqlserver://127.0.0.1:1433;DatabaseName=database';
|
||||
this.currentConfig.dbUrl = 'jdbc:sqlserver://127.0.0.1:1433;DatabaseName=database;encrypt=true;trustServerCertificate=true;';
|
||||
} else if (type === 'org.postgresql.Driver') {
|
||||
this.currentConfig.dbUrl = 'jdbc:postgresql://127.0.0.1:5432/database';
|
||||
} else if (type === 'oracle.jdbc.OracleDriver') {
|
||||
|
|
|
@ -151,7 +151,7 @@ export default {
|
|||
if(type === "com.mysql.jdbc.Driver"){
|
||||
this.currentConfig.dbUrl = "jdbc:mysql://127.0.0.1:3306/database";
|
||||
}else if(type === "com.microsoft.sqlserver.jdbc.SQLServerDriver"){
|
||||
this.currentConfig.dbUrl = "jdbc:sqlserver://127.0.0.1:1433;DatabaseName=database";
|
||||
this.currentConfig.dbUrl = "jdbc:sqlserver://127.0.0.1:1433;DatabaseName=database;encrypt=true;trustServerCertificate=true;";
|
||||
}else if(type === "org.postgresql.Driver"){
|
||||
this.currentConfig.dbUrl = "jdbc:postgresql://127.0.0.1:5432/database";
|
||||
}else if(type === "oracle.jdbc.OracleDriver"){
|
||||
|
|
Loading…
Reference in New Issue