I proceeding Android studio - Spring by XML parsing,with the below error :
HTTP Status 500 - Request processing failed; nested exception is java.lang.IllegalStateException: An Errors/BindingResult argument is expected to be declared immediately after the model attribute, the @RequestBody or the @RequestPart arguments to which they apply: ..... . . . Spring is
Code
@RequestMapping(value = "/boardToMyXml")
@ResponseBody
public XmlDataList MyXml( Errors errors,HttpSession session, HttpServletRequest request,
Model model, HttpServletResponse response) {
String id = request.getParameter("id");
String pw = request.getParameter("pw");
AuthInfo authInfo = authService.authenticate(id, pw);
int userNum =authInfo.getUserNum();
model.addAttribute("id", id);
model.addAttribute("pw", pw);
model.addAttribute("userNum", userNum);
List<Data> listm = boardDao.xmlMyBoardList(userNum);
System.out.println(listm);
return new XmlDataList(listm);
}