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"){