You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 类
public class Test { @JsonProperty("isStudent")
private String studentFlag;
// getter setter省略
}
// controller 方法
public void receive(@responsebody JSONArray jsonArray){
List list = JSONArray.parseArray(JSONArray.toJSONString(jsonArray),Test.class) ;
}
// 前端传参
[{
"isStudent":"1"
}]
调试时list里Test的studentFlag字段是null
The text was updated successfully, but these errors were encountered:
// 类
public class Test {
@JsonProperty("isStudent")
private String studentFlag;
// getter setter省略
}
// controller 方法
public void receive(@responsebody JSONArray jsonArray){
List list = JSONArray.parseArray(JSONArray.toJSONString(jsonArray),Test.class) ;
}
// 前端传参
[{
"isStudent":"1"
}]
调试时list里Test的studentFlag字段是null
The text was updated successfully, but these errors were encountered: