-
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 어노테이션으로 Product 모듈 feign client 분리
- Loading branch information
Showing
10 changed files
with
68 additions
and
8 deletions.
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
10 changes: 10 additions & 0 deletions
10
backend/product/src/main/java/org/samtuap/inong/common/client/LiveFeignLocal.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 = "live-service", configuration = FeignConfig.class) | ||
public interface LiveFeignLocal extends LiveFeign { | ||
} |
11 changes: 11 additions & 0 deletions
11
backend/product/src/main/java/org/samtuap/inong/common/client/LiveFeignProd.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("prod") | ||
@FeignClient(name = "live-service", url="http://live-service", configuration = FeignConfig.class) | ||
public interface LiveFeignProd extends LiveFeign { | ||
} |
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/product/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/product/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 { | ||
} |
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
10 changes: 10 additions & 0 deletions
10
backend/product/src/main/java/org/samtuap/inong/common/client/OrderFeignLocal.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 = "order-service", configuration = FeignConfig.class) | ||
public interface OrderFeignLocal extends OrderFeign { | ||
} |
10 changes: 10 additions & 0 deletions
10
backend/product/src/main/java/org/samtuap/inong/common/client/OrderFeignProd.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 = "order-service", url="http://product-service", configuration = FeignConfig.class) | ||
public interface OrderFeignProd extends OrderFeign { | ||
} |
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