使用postman提交数据时,不要添加ContentType参数,浏览器会自动添加的,
不然会报错:the request was rejected because no multipart boundary was found
action的groupId属性:
private Long groupId;
public Long getGroupId() {
return groupId;
}
public void setGroupId(Long groupId) {
this.groupId = groupId;
}
postman设置:
Headers里不要添加ContentType: