Jelajahi Sumber

error Controller GetMapping -> RequestMapping 변경 커밋

card007 4 tahun lalu
induk
melakukan
1a6938d8f6

+ 3 - 4
src/main/java/com/style24/front/support/controller/TsfErrorController.java

@@ -6,14 +6,13 @@ 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 org.springframework.web.bind.annotation.RequestMapping;
 
+import com.gagaframework.web.rest.server.GagaResponseStatus;
 import com.style24.front.support.util.ViewUtils;
 
 import lombok.extern.slf4j.Slf4j;
 
-import com.gagaframework.web.rest.server.GagaResponseStatus;
-
 /**
  * Error Controller
  * 		Disabling the Whitelabel Error Page
@@ -40,7 +39,7 @@ public class TsfErrorController implements ErrorController {
 	/**
 	 * Error
 	 */
-	@GetMapping("/error")
+	@RequestMapping("/error")
 	public String error(HttpServletRequest request) throws HttpRequestMethodNotSupportedException {
 		Object status = request.getAttribute(RequestDispatcher.ERROR_STATUS_CODE);