|
@@ -6,12 +6,12 @@ import javax.servlet.http.HttpServletRequest;
|
|
|
import org.springframework.boot.web.servlet.error.ErrorController;
|
|
import org.springframework.boot.web.servlet.error.ErrorController;
|
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.HttpRequestMethodNotSupportedException;
|
|
import org.springframework.web.HttpRequestMethodNotSupportedException;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
-
|
|
|
|
|
-import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
|
|
import com.gagaframework.web.rest.server.GagaResponseStatus;
|
|
import com.gagaframework.web.rest.server.GagaResponseStatus;
|
|
|
|
|
|
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* Error Controller
|
|
* Error Controller
|
|
|
* Disabling the Whitelabel Error Page
|
|
* Disabling the Whitelabel Error Page
|
|
@@ -38,7 +38,7 @@ public class TssErrorController implements ErrorController {
|
|
|
/**
|
|
/**
|
|
|
* Error
|
|
* Error
|
|
|
*/
|
|
*/
|
|
|
- @GetMapping("/error")
|
|
|
|
|
|
|
+ @RequestMapping("/error")
|
|
|
public String error(HttpServletRequest request) throws HttpRequestMethodNotSupportedException {
|
|
public String error(HttpServletRequest request) throws HttpRequestMethodNotSupportedException {
|
|
|
Object status = request.getAttribute(RequestDispatcher.ERROR_STATUS_CODE);
|
|
Object status = request.getAttribute(RequestDispatcher.ERROR_STATUS_CODE);
|
|
|
|
|
|