| | |
| | | import org.springframework.web.HttpRequestMethodNotSupportedException; |
| | | import org.springframework.web.bind.annotation.ExceptionHandler; |
| | | import org.springframework.web.bind.annotation.RestControllerAdvice; |
| | | import org.springframework.web.method.HandlerMethod; |
| | | |
| | | /** |
| | | * Created by vincent on 2019-06-09 |
| | |
| | | private I18nMessageService i18nMessageService; |
| | | |
| | | @ExceptionHandler(Exception.class) |
| | | public R handlerException(HandlerMethod handler, Exception e) { |
| | | public R handlerException(Exception e) { |
| | | e.printStackTrace(); |
| | | return R.error(i18nMessageService.getMessage("response.common.systemError")); |
| | | } |