java.lang.IllegalStateException: Errors/BindingResult argument declared without preceding model attribute. Check your handler method signature!
위의 에러는 Validate를 하는 메소드 내에서 BindingResult의 순서와 관련된 에러인듯 하다.
BindingResult가 HttpServletRequest, HttpServletResponse, ModelMap 등~ 보다 먼저 선언되어야
에러가 나지 안았다!!!
@ModelAttribute("swInfoVO") ST_Sw_VO swInfoVO,
BindingResult bindingResult,
Model model,
SessionStatus status)
throws Exception{
이와같이 BindingResult를 꼭 앞에 쓰는 습관을 길러야겠다...
물론 원인은 알지 못한다...........
'java/jsp/spring > error' 카테고리의 다른 글
Context initialization failed (2) | 2013.03.04 |
---|