Skip to content

Commit

Permalink
Feat: ControllerAdvice 수정 #1
Browse files Browse the repository at this point in the history
  • Loading branch information
tokyj515 committed Jul 13, 2023
1 parent 1155dc8 commit a2c9eac
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public ResponseEntity test(){
}


//API 응답 반환 형식 예
@GetMapping("")
public ApiResponse<String> test2(@RequestParam(required = false) String s){

Expand All @@ -29,4 +30,5 @@ public ApiResponse<String> test2(@RequestParam(required = false) String s){

return new ApiResponse<>("데이터가 들어갈 자리(문자열, 객체 등");
}

}

0 comments on commit a2c9eac

Please sign in to comment.