From 4ff738f377504fe8f2296df18cf7d0123641cdd9 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期四, 17 十月 2019 22:11:03 +0800
Subject: [PATCH] 优化调用微服务时的报错

---
 java110-core/src/main/java/com/java110/core/smo/store/IStoreInnerServiceSMO.java |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/java110-core/src/main/java/com/java110/core/smo/store/IStoreInnerServiceSMO.java b/java110-core/src/main/java/com/java110/core/smo/store/IStoreInnerServiceSMO.java
index 05592a3..30a9f6c 100644
--- a/java110-core/src/main/java/com/java110/core/smo/store/IStoreInnerServiceSMO.java
+++ b/java110-core/src/main/java/com/java110/core/smo/store/IStoreInnerServiceSMO.java
@@ -1,6 +1,11 @@
 package com.java110.core.smo.store;
 
+import com.java110.core.feign.FeignConfiguration;
 import com.java110.dto.store.StoreDto;
+import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
 
 import java.util.List;
 
@@ -8,7 +13,10 @@
  * 鍟嗘埛 鏈嶅姟鍐呴儴浜や簰鎺ュ彛绫�
  * add by wuxw 2019-09-19
  */
+@FeignClient(name = "store-service", configuration = {FeignConfiguration.class})
+@RequestMapping("/storeApi")
 public interface IStoreInnerServiceSMO {
 
-    public List<StoreDto> getStores(StoreDto storeDto);
+    @RequestMapping(value = "/getStores", method = RequestMethod.POST)
+    public List<StoreDto> getStores(@RequestBody StoreDto storeDto);
 }

--
Gitblit v1.8.0