작심삼일
ajax로 List<vo> 데이터 받기 본문
var data = [{'a' : 1, 'b' : 2},{'a' : 1, 'b' : 2},{'a' : 1, 'b' : 2}]
$.ajax({
url : url,
type : 'post',
dataType : 'json',
data : JSON.stringify(data),
contentType: 'application/json',
beforeSend : function(){
},
success : function(res) {
}
});
@RequestMapping(value = url, method = {RequestMethod.POST,RequestMethod.GET})
@ResponseBody
public ModelAndView saveBibReadListJson(@RequestBody VO param) {
}
public class VO
{
private String a;
private String b;
private List<VO> VO;
}
요렇게~
'Spring Framework' 카테고리의 다른 글
AOP Alliance 란? (0) | 2021.02.21 |
---|---|
Spring Framework 개발 (0) (0) | 2021.01.13 |
Comments