//多个json对象适配器
@At("/formJson2")
@AdaptBy(type=JsonAdaptor.class)
@Ok("json:{locked:'fox.name'}") //这里怎么写?
public void fromJson2(@Param("pet") Pet pet,@Param("fox") Fox fox){
System.out.println("下面是pet formJson2的属性:");
System.out.println("pet.getId():"+pet.getId());
System.out.println("pet.getName():"+pet.getName());
System.out.println("pet.getAge():"+pet.getAge());
System.out.println("pet.getSex():"+pet.getSex());
System.out.println("fox.getId():"+fox.getId());
System.out.println("fox.getName():"+fox.getName());
}
添加回复
请先登陆