// System.out.println("获取VO2");
// System.out.println("id:"+vo2.getId());
// System.out.println("orders:");
// for(List<String> o:vo2.getOrder()) {
// System.out.println("column:" + o.get(0)+" dir:"+o.get(1));
// }
return "ok";
}
两个实体对象(必须是独立的文件中的类,否则一直报找不到构造函数的错误)
public class MyVO{
private int id;
private List<Order> order = new ArrayList<Order>();
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public List<Order> getOrder() {
return order;
}
public void setOrder(List<Order> order) {
this.order = order;
}
}
public class Order{
private String column;
private String dir;
public String getColumn() {
return column;
}
public void setColumn(String column) {
this.column = column;
}
public String getDir() {
return dir;
}
public void setDir(String dir) {
this.dir = dir;
}
}
Linux公社的RSS地址:https://www.linuxidc.com/rssFeed.aspx