|
|
|
@ -1,3 +1,8 @@
|
|
|
|
|
/*
|
|
|
|
|
* Copyright (C) 2021 Anton Romanov - All Rights Reserved
|
|
|
|
|
* You may use, distribute and modify this code, please write to: romanov73@gmail.com.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
package ru.ulstu.extractor.config;
|
|
|
|
|
|
|
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
|
@ -6,10 +11,12 @@ import org.springframework.web.bind.annotation.ExceptionHandler;
|
|
|
|
|
import org.springframework.web.bind.annotation.ResponseStatus;
|
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
import org.springframework.web.servlet.NoHandlerFoundException;
|
|
|
|
|
import springfox.documentation.annotations.ApiIgnore;
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
|
|
|
|
|
@ControllerAdvice
|
|
|
|
|
@ApiIgnore
|
|
|
|
|
class GlobalDefaultExceptionHandler {
|
|
|
|
|
public static final String DEFAULT_ERROR_VIEW = "error";
|
|
|
|
|
|
|
|
|
|