diff --git a/src/main/java/modernfarmer/server/farmususer/community/CommunityServiceFeignClient.java b/src/main/java/modernfarmer/server/farmususer/community/CommunityServiceFeignClient.java index 5973a2d..8046079 100644 --- a/src/main/java/modernfarmer/server/farmususer/community/CommunityServiceFeignClient.java +++ b/src/main/java/modernfarmer/server/farmususer/community/CommunityServiceFeignClient.java @@ -8,7 +8,7 @@ import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestParam; -@FeignClient(name = "community-service") +@FeignClient(url = "http://3.38.2.59:8082", name = "community-service") public interface CommunityServiceFeignClient { @DeleteMapping("/api/community/posting/all-posting/{userId}") diff --git a/src/main/java/modernfarmer/server/farmususer/farm/FarmServiceFeignClient.java b/src/main/java/modernfarmer/server/farmususer/farm/FarmServiceFeignClient.java index 7954bae..667dcf9 100644 --- a/src/main/java/modernfarmer/server/farmususer/farm/FarmServiceFeignClient.java +++ b/src/main/java/modernfarmer/server/farmususer/farm/FarmServiceFeignClient.java @@ -5,7 +5,7 @@ import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.PathVariable; -@FeignClient(name = "farm-service") +@FeignClient(url = "http://3.36.221.140:8081", name = "farm-service") public interface FarmServiceFeignClient { @DeleteMapping("/api/veggie/{userId}") diff --git a/src/main/java/modernfarmer/server/farmususer/user/service/UserService.java b/src/main/java/modernfarmer/server/farmususer/user/service/UserService.java index b75560e..be251bf 100644 --- a/src/main/java/modernfarmer/server/farmususer/user/service/UserService.java +++ b/src/main/java/modernfarmer/server/farmususer/user/service/UserService.java @@ -118,12 +118,7 @@ public BaseResponseDto deleteUser(Long userId){ userRepository.deleteUser(userId); communityServiceFeignClient.deleteAllPosting(userId); - // farmServiceFeignClient.deleteAllVeggies(userId); - - - - - + farmServiceFeignClient.deleteAllVeggies(userId); log.info("유저 계정 삭제 완료");