fix(系统设置): 修复jdk17连接SQL server数据库失败的缺陷

--bug=1025012 --user=王孝刚 【接口测试】升级后,环境配置中连接SQL server数据库失败
https://www.tapd.cn/55049933/s/1358408
This commit is contained in:
wxg0103 2023-03-31 18:51:20 +08:00 committed by wxg0103
parent 95f80e8dde
commit 662e8e28c3
2 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ export default {
if (type === 'com.mysql.jdbc.Driver') { if (type === 'com.mysql.jdbc.Driver') {
this.currentConfig.dbUrl = 'jdbc:mysql://127.0.0.1:3306/database'; this.currentConfig.dbUrl = 'jdbc:mysql://127.0.0.1:3306/database';
} else if (type === 'com.microsoft.sqlserver.jdbc.SQLServerDriver') { } 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') { } else if (type === 'org.postgresql.Driver') {
this.currentConfig.dbUrl = 'jdbc:postgresql://127.0.0.1:5432/database'; this.currentConfig.dbUrl = 'jdbc:postgresql://127.0.0.1:5432/database';
} else if (type === 'oracle.jdbc.OracleDriver') { } else if (type === 'oracle.jdbc.OracleDriver') {

View File

@ -151,7 +151,7 @@ export default {
if(type === "com.mysql.jdbc.Driver"){ if(type === "com.mysql.jdbc.Driver"){
this.currentConfig.dbUrl = "jdbc:mysql://127.0.0.1:3306/database"; this.currentConfig.dbUrl = "jdbc:mysql://127.0.0.1:3306/database";
}else if(type === "com.microsoft.sqlserver.jdbc.SQLServerDriver"){ }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"){ }else if(type === "org.postgresql.Driver"){
this.currentConfig.dbUrl = "jdbc:postgresql://127.0.0.1:5432/database"; this.currentConfig.dbUrl = "jdbc:postgresql://127.0.0.1:5432/database";
}else if(type === "oracle.jdbc.OracleDriver"){ }else if(type === "oracle.jdbc.OracleDriver"){