@ControllerAdvice
public class ErrorHandler
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
| Constructor and Description |
|---|
ErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
WebError |
errorAttributes(java.lang.Exception exception,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
protected org.springframework.context.ApplicationContext applicationContext
@ExceptionHandler(value=java.lang.Exception.class) @ResponseBody public WebError errorAttributes(java.lang.Exception exception, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
@Autowired public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)