controller控制器参数为 对象+集合 ,如何传参
postman 这样写获取不到
controller控制器参数为 对象+集合 ,如何传参
postman 这样写获取不到
建议定义一个Vo,用来接收你的这种参数。vo可以参考这个
public class PermissionVo{
private Employee employee;
private List<Role> roleList;
public Employee getEmployee() {
return employee;
}
public void setEmployee(Employee employee) {
this.employee = employee;
}
public List<Role> getRoleList() {
return roleList;
}
public void setRoleList(List<Role> roleList) {
this.roleList = roleList;
}
}