java.lang.Integer[] [1, 2] java.lang.Boolean[] [true, false] JavaBean(就是平时用的DTO,class类) {"att1":"foo","att2":"foo2"} JavaBean[] [{"att1":"foo"}, {"att1":"foo2"}] java.util.Map以及子类 {"att1":"foo","att2":"foo2"} java.util.Map<String,JavaBean> {"keyName":{"att1":"foo"}} java.util.HashMap<Object,Object> {"keyName":{"att1":"foo"}} java.util.Collection以及子类 ["a","b"] java.util.List<String> ["a", "b"] java.util.List<JavaBean> [{"att1":"foo1"}, {"att1":"foo2"}] java.util.List<Map<Object, JavaBean>> [{"keyName1":{"att1":"foo1"}}, {"keyName2":{"att1":"foo1"}}] java.util.List<Long> [1, 2, 3] java.util.ArrayList<Object> ["foo" , 1, true]
--------------------------------------------- 枚举(1) 例如:枚举InvoiceTypeEnum内这样写:TYPE_001(“key1”,“value1”) {"name": "TYPE_001", "class":"com.xxx.enums.InvoiceTypeEnum"} (注:telnet请求要写name和class,jmeter请求只要写个“invoiceTypeEnum”:“TYPE_001”便可)
--------------------------------------------- 枚举(2) 例如:枚举写在JavaBean中(DTO class类)以下定义: private InvoiceTypeEnum invoiceTypeEnum;
InvoiceTypeEnum中,在InvoiceTypeEnum.java文件中以下定义: enum InvoiceTypeEnum{ (“Type_001”,"001"), (“Type_002”,"002"), (“Type_003”,"003") }
{
“invoiceTypeEnum”: “Type_001”
}
|