Parcourir la source

error Controller GetMapping -> RequestMapping 변경 커밋

card007 il y a 4 ans
Parent
commit
8011e3ee7e

+ 4 - 4
src/main/java/com/style24/scm/support/controller/TssErrorController.java

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