2011-01-21 4 views

답변

3

난 당신이 보여주고 싶은 뷰를 반환 할 필요가 있다고 생각합니다.

@ExceptionHandler(Exception.class) 
@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR) 
public String handleAllExceptions(Exception e) { 
    return "error.jsp"; /* use the correct view name */ 
} 

@see : 몇 가지 예에 대한 Spring 3 controller exception handler implementation problems

+1

반환 "리디렉션 : /error.htm를"; 리디렉션 : 작동합니다! 감사 :) –