1. springboot中添加pojo对象
@Data
public class JSPBO {
private Integer[] billIds;
private String openid;
private Integer complexId;
}
2. springboot 接口中使用对象
@PostMapping("/hello")
public Object hello(@RequestBody JSPBO jspbo) {
Integer[] i = jspbo.getBillIds();
for (Integer a : i){
System.out.println(a);
}
return "Hello word";
}
3. postman 填写调用参数