본문 바로가기
[프로그래밍]/FrontEnd

Ajax로 데이터 주고 받을 때 Error : There is a cycle in the hierarchy!

by control+c 2014. 12. 31.
반응형

Ajax로 데이터를 주고 받는 과정에서 200혹은  500에러가 뜨면서 아래와 같은 문구가 보인다면



There is a cycle in the hierarchy!



자바단에서 

ModelAndView model = new ModelAndView(new JsonView());


모델엔 뷰의 생성자의 파라메터를 


ModelAndView model = new ModelAndView("jsonView");


jsonView로 바꿔주면 된다. 


ajax 결과데이터 인코딩이 깨질때도 효과가 있음.


반응형

댓글