Skip to content

Commit

Permalink
feat: ALB healthyCheck 200반환 코드 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
ss7622 committed Jul 6, 2024
1 parent 1b887a0 commit c844695
Showing 1 changed file with 47 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,26 +87,68 @@ public ResponseEntity<List<RecommendFlowerDto>> preferFlower(@PathVariable("id")

return ResponseEntity.ok(re);
}

@GetMapping("/")
public ResponseEntity<?> healthyCheck(){
return ResponseEntity.ok().build();
}
//-----------------------------------------------------------------------------------------------------------------
// @GetMapping("/save/test")
// public RecommendFlower dd(){
// RecommendFlower build = RecommendFlower.builder()
// .flower(flowerService.findByNameAndFlowerLanguage("토마토", "완성된 아름다움"))
// .prefer(true)
// .member(memberService.findById(1L))
// .member(memberService.findById(7L))
// .build();
//
//
// recommendFlowerService.saveRecommendFlower(build);
//
// RecommendFlower build1 = RecommendFlower.builder()
// .flower(flowerService.findByNameAndFlowerLanguage("나도풍란", "인내"))
// .prefer(true)
// .member(memberService.findById(7L))
// .build();
//
//
// recommendFlowerService.saveRecommendFlower(build1);
//
// RecommendFlower build2 = RecommendFlower.builder()
// .flower(flowerService.findByNameAndFlowerLanguage("군자란", "고귀"))
// .prefer(true)
// .member(memberService.findById(7L))
// .build();
//
// recommendFlowerService.saveRecommendFlower(build2);
//
// return memberService.findById(7L).getRecommendFlowers().get(0);
// }
//
// @GetMapping("/test/test")
// public void pp(){
//
// RecommendComment comment = RecommendComment.builder()
// .content("이것은 추천 멘트")
// .member(memberService.findById(1L))
// .content("이것은 추천 멘트1")
// .member(memberService.findById(7L))
// .prefer(true)
// .build();
//
// recommendCommentService.saveRecommendComment(comment);
//
// RecommendComment comment1 = RecommendComment.builder()
// .content("이것은 추천 멘트2")
// .member(memberService.findById(7L))
// .prefer(true)
// .build();
//
// recommendCommentService.saveRecommendComment(comment1);
//
// recommendFlowerService.saveRecommendFlower(build);
// return memberService.findById(1L).getRecommendFlowers().get(0);
// RecommendComment comment2 = RecommendComment.builder()
// .content("이것은 추천 멘트3")
// .member(memberService.findById(7L))
// .prefer(true)
// .build();
//
// recommendCommentService.saveRecommendComment(comment2);
// }
}

0 comments on commit c844695

Please sign in to comment.