From 662e8e28c3fbaf79c0829e115764a42ffcd86005 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Fri, 31 Mar 2023 18:51:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8Djdk17=E8=BF=9E=E6=8E=A5SQL=20server=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E5=A4=B1=E8=B4=A5=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1025012 --user=王孝刚 【接口测试】升级后,环境配置中连接SQL server数据库失败 https://www.tapd.cn/55049933/s/1358408 --- .../definition/components/request/database/DatabaseFrom.vue | 2 +- .../src/components/environment/database/DatabaseFrom.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api-test/frontend/src/business/definition/components/request/database/DatabaseFrom.vue b/api-test/frontend/src/business/definition/components/request/database/DatabaseFrom.vue index ad87152433..d848a0f1e8 100644 --- a/api-test/frontend/src/business/definition/components/request/database/DatabaseFrom.vue +++ b/api-test/frontend/src/business/definition/components/request/database/DatabaseFrom.vue @@ -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') { diff --git a/framework/sdk-parent/frontend/src/components/environment/database/DatabaseFrom.vue b/framework/sdk-parent/frontend/src/components/environment/database/DatabaseFrom.vue index dbf66f3b70..19f951b33d 100644 --- a/framework/sdk-parent/frontend/src/components/environment/database/DatabaseFrom.vue +++ b/framework/sdk-parent/frontend/src/components/environment/database/DatabaseFrom.vue @@ -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"){