From a2c9eacc8c4e784427d177aaab0c2859ac90a063 Mon Sep 17 00:00:00 2001 From: YuJin Kwon Date: Thu, 13 Jul 2023 15:27:07 +0900 Subject: [PATCH] =?UTF-8?q?Feat:=20ControllerAdvice=20=EC=88=98=EC=A0=95?= =?UTF-8?q?=20#1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/example/neoul/controller/TestController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/example/neoul/controller/TestController.java b/src/main/java/com/example/neoul/controller/TestController.java index 108c845..47b5872 100644 --- a/src/main/java/com/example/neoul/controller/TestController.java +++ b/src/main/java/com/example/neoul/controller/TestController.java @@ -21,6 +21,7 @@ public ResponseEntity test(){ } + //API 응답 반환 형식 예 @GetMapping("") public ApiResponse test2(@RequestParam(required = false) String s){ @@ -29,4 +30,5 @@ public ApiResponse test2(@RequestParam(required = false) String s){ return new ApiResponse<>("데이터가 들어갈 자리(문자열, 객체 등"); } + }