diff --git a/src/main/java/com/example/fiurinee/domain/inputMessage/controller/ModelController.java b/src/main/java/com/example/fiurinee/domain/inputMessage/controller/ModelController.java index 349e7b3..ac8aa5f 100644 --- a/src/main/java/com/example/fiurinee/domain/inputMessage/controller/ModelController.java +++ b/src/main/java/com/example/fiurinee/domain/inputMessage/controller/ModelController.java @@ -59,21 +59,22 @@ public ResponseEntity> inputMentNotMember(@RequestBody Str String url = "http://localhost:8080/model/test"; int value = LocalDateTime.now().getMonth().getValue(); - System.out.println("value = " + value); List re = CallApiService.mentApi(url, new MentDto(ment, value)); - System.out.println("re.get(0).getName() = " + re.get(0).getName()); - System.out.println("re.get(0).getFlowerLanguage() = " + re.get(0).getFlowerLanguage()); Flower byName0 = flowerService.findByNameAndFlowerLanguage(re.get(0).getName(),re.get(0).getFlowerLanguage()); Flower byName1 = flowerService.findByNameAndFlowerLanguage(re.get(1).getName(),re.get(1).getFlowerLanguage()); + Flower byName2 = flowerService.findByNameAndFlowerLanguage(re.get(2).getName(),re.get(2).getFlowerLanguage()); + List re2 = new ArrayList<>(); ResponseMentDto responseMentDto0 = new ResponseMentDto(byName0); ResponseMentDto responseMentDto1 = new ResponseMentDto(byName1); + ResponseMentDto responseMentDto2 = new ResponseMentDto(byName2); re2.add(responseMentDto0); re2.add(responseMentDto1); + re2.add(responseMentDto2); return ResponseEntity.ok(re2); @@ -99,9 +100,12 @@ public List modelTest(@RequestBody MentDto mentDto) { List re = new ArrayList<>(); ModelMentResponseDto modelMentResponseDto0 = new ModelMentResponseDto("토레니아", "가련한 욕망"); ModelMentResponseDto modelMentResponseDto1 = new ModelMentResponseDto("토마토", "완성된 아름다움"); + ModelMentResponseDto modelMentResponseDto2 = new ModelMentResponseDto("겹 캄파눌라", "따뜻한 사람"); + re.add(modelMentResponseDto0); re.add(modelMentResponseDto1); + re.add(modelMentResponseDto2); return re; diff --git a/src/main/java/com/example/fiurinee/global/security/filter/JwtVerifyFilter.java b/src/main/java/com/example/fiurinee/global/security/filter/JwtVerifyFilter.java index cc8f5a2..783a204 100644 --- a/src/main/java/com/example/fiurinee/global/security/filter/JwtVerifyFilter.java +++ b/src/main/java/com/example/fiurinee/global/security/filter/JwtVerifyFilter.java @@ -29,7 +29,7 @@ public class JwtVerifyFilter extends OncePerRequestFilter { //Swagger "/swagger-ui/index.html", "/swagger-ui/**", "/v3/api-docs/**", "/swagger-resources/**", "/v3/api-docs", //비회원 전용 api - "/main/today","/main/season","model/ment"}; + "/main/today","/main/season","/model/ment"}; private final RedisUtil redisUtil;