diff --git a/src/main/java/modernfarmer/server/farmususer/community/CommunityServiceFeignClient.java b/src/main/java/modernfarmer/server/farmususer/community/CommunityServiceFeignClient.java index 4ecc013..9b2cc3a 100644 --- a/src/main/java/modernfarmer/server/farmususer/community/CommunityServiceFeignClient.java +++ b/src/main/java/modernfarmer/server/farmususer/community/CommunityServiceFeignClient.java @@ -6,7 +6,7 @@ import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestParam; -@FeignClient(name = "community-service") +@FeignClient(name = "community-service", url = "http://3.38.2.59:8082") public interface CommunityServiceFeignClient { @DeleteMapping("/api/community/posting/all-posting") diff --git a/src/main/java/modernfarmer/server/farmususer/farm/FarmServiceFeignClient.java b/src/main/java/modernfarmer/server/farmususer/farm/FarmServiceFeignClient.java index a39f7ab..3dedfb3 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(name = "farm-service", url = "http://3.36.221.140:8081") 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 85d5da8..9469e87 100644 --- a/src/main/java/modernfarmer/server/farmususer/user/service/UserService.java +++ b/src/main/java/modernfarmer/server/farmususer/user/service/UserService.java @@ -117,10 +117,10 @@ public BaseResponseDto signUpComlete(Long userId){ public BaseResponseDto deleteUser(Long userId){ userRepository.deleteUser(userId); - + communityServiceFeignClient.deleteAllPosting(userId); farmServiceFeignClient.deleteAllFarm(userId); - communityServiceFeignClient.deleteAllPosting(userId); +