-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Profile 어노테이션으로 Order 모듈 feign client 분리
- Loading branch information
Showing
5 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
backend/order/src/main/java/org/samtuap/inong/common/client/MemberFeignLocal.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.samtuap.inong.common.client; | ||
|
||
|
||
import org.samtuap.inong.config.FeignConfig; | ||
import org.springframework.cloud.openfeign.FeignClient; | ||
import org.springframework.context.annotation.Profile; | ||
|
||
@Profile("local") | ||
@FeignClient(name = "member-service", configuration = FeignConfig.class) | ||
public interface MemberFeignLocal extends MemberFeign { | ||
} |
10 changes: 10 additions & 0 deletions
10
backend/order/src/main/java/org/samtuap/inong/common/client/MemberFeignProd.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.samtuap.inong.common.client; | ||
|
||
import org.samtuap.inong.config.FeignConfig; | ||
import org.springframework.cloud.openfeign.FeignClient; | ||
import org.springframework.context.annotation.Profile; | ||
|
||
@Profile("prod") | ||
@FeignClient(name = "member-service", url = "http://member-service", configuration = FeignConfig.class) | ||
public interface MemberFeignProd extends MemberFeign { | ||
} |
10 changes: 10 additions & 0 deletions
10
backend/order/src/main/java/org/samtuap/inong/common/client/ProductFeignLocal.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.samtuap.inong.common.client; | ||
|
||
import org.samtuap.inong.config.FeignConfig; | ||
import org.springframework.cloud.openfeign.FeignClient; | ||
import org.springframework.context.annotation.Profile; | ||
|
||
@Profile("local") | ||
@FeignClient(name = "product-service", configuration = FeignConfig.class) | ||
public interface ProductFeignLocal extends ProductFeign { | ||
} |
10 changes: 10 additions & 0 deletions
10
backend/order/src/main/java/org/samtuap/inong/common/client/ProductFeignProd.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.samtuap.inong.common.client; | ||
|
||
import org.samtuap.inong.config.FeignConfig; | ||
import org.springframework.cloud.openfeign.FeignClient; | ||
import org.springframework.context.annotation.Profile; | ||
|
||
@Profile("prod") | ||
@FeignClient(name = "product-service", url="http://product-service", configuration = FeignConfig.class) | ||
public interface ProductFeignProd extends ProductFeign { | ||
} |