增加HTTPS接口测试功能
This commit is contained in:
parent
13675486a1
commit
527629ef3e
2
pom.xml
2
pom.xml
|
@ -223,7 +223,7 @@
|
|||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<version>6.0.5</version>
|
||||
<version>8.0.11</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.quartz-scheduler</groupId>
|
||||
|
|
|
@ -21,6 +21,7 @@ public class ProjectProtocolTemplate implements java.io.Serializable{
|
|||
private int projectid;
|
||||
private String name;
|
||||
private String protocoltype;
|
||||
private String cerpath;
|
||||
private String contentencoding;
|
||||
private int connecttimeout;
|
||||
private String time;
|
||||
|
@ -30,6 +31,12 @@ public class ProjectProtocolTemplate implements java.io.Serializable{
|
|||
private String headmsg;
|
||||
|
||||
|
||||
public String getCerpath() {
|
||||
return cerpath;
|
||||
}
|
||||
public void setCerpath(String cerpath) {
|
||||
this.cerpath = cerpath;
|
||||
}
|
||||
public String getHeadmsg() {
|
||||
return headmsg;
|
||||
}
|
||||
|
|
|
@ -20,6 +20,9 @@
|
|||
<property name="protocoltype" type="java.lang.String">
|
||||
<column name="protocoltype" length="20" not-null="true" />
|
||||
</property>
|
||||
<property name="cerpath" type="java.lang.String">
|
||||
<column name="cerpath" length="300" not-null="false" />
|
||||
</property>
|
||||
<property name="contentencoding" type="java.lang.String">
|
||||
<column name="contentencoding" length="20" not-null="true" />
|
||||
</property>
|
||||
|
|
|
@ -117,6 +117,14 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="cerpath" class="col-sm-3 control-label">证书路径</label>
|
||||
<div class="col-sm-9">
|
||||
<textarea class="form-control" name="cerpath" id="cerpath"
|
||||
placeholder="非必填项,HTTPS双向认证才会用到,HTTPS单向认证此项请保持为空,格式:【https证书路径;密钥】"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="projectid" class="col-sm-3 control-label">编码格式</label>
|
||||
<div class="col-sm-9">
|
||||
|
@ -379,6 +387,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
cerpath : {
|
||||
message : '证书路径无效!',
|
||||
validators : {
|
||||
stringLength : {
|
||||
min : 0,
|
||||
max : 300,
|
||||
message : '证书存放路径长度必须小于300个字符'
|
||||
}
|
||||
}
|
||||
},
|
||||
remark : {
|
||||
message : '模板备注无效!',
|
||||
validators : {
|
||||
|
@ -443,13 +461,14 @@
|
|||
$("#projectid").val(row[0].projectid);
|
||||
$("#name").val("COPY "+row[0].name);
|
||||
$("#protocoltype").val(row[0].protocoltype);
|
||||
$("#cerpath").val(row[0].cerpath);
|
||||
$("#headmsg").val(row[0].headmsg);
|
||||
$("#contentencoding").val(row[0].contentencoding);
|
||||
$("#connecttimeout").val(row[0].connecttimeout);
|
||||
$("#remark").val(row[0].remark);
|
||||
$("#id").val(row[0].id);
|
||||
$("#addModal").modal('show');
|
||||
}
|
||||
}
|
||||
}else{
|
||||
toastr.warning('要复制模板有且只能选择一条记录哦!');
|
||||
}
|
||||
|
|
|
@ -59,13 +59,14 @@
|
|||
<tr>
|
||||
<td width="20%" style="font-weight:bold;">项目名称:${ptemplate.projectname}</td>
|
||||
<td width="20%" style="font-weight:bold;">模板名称:${ptemplate.name}</td>
|
||||
<td width="60%" style="font-weight:bold;" colspan="2">请求头域:${ptemplate.headmsg}</td>
|
||||
<td width="50%" style="font-weight:bold;">请求头域:${ptemplate.headmsg}</td>
|
||||
<td width="10%" style="font-weight:bold;">协议类型:${ptemplate.protocoltype}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20%" style="font-weight:bold;">协议类型:${ptemplate.protocoltype}</td>
|
||||
<td width="20%" style="font-weight:bold;">编码格式:${ptemplate.contentencoding}</td>
|
||||
<td width="20%" style="font-weight:bold;">超时时间:${ptemplate.connecttimeout}</td>
|
||||
<td width="40%" style="font-weight:bold;">备注:${ptemplate.remark}</td>
|
||||
<td style="font-weight:bold;">编码格式:${ptemplate.contentencoding}</td>
|
||||
<td style="font-weight:bold;">备注:${ptemplate.remark}</td>
|
||||
<td style="font-weight:bold;">证书路径:${ptemplate.cerpath}</td>
|
||||
<td style="font-weight:bold;">超时时间:${ptemplate.connecttimeout}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
|
Loading…
Reference in New Issue