Commit e457df80 by 刘宇峰

同步商品

1 parent 8c3c9c37
......@@ -2,7 +2,7 @@ package cn.com.glsx.admin.api;
import org.springframework.cloud.openfeign.FeignClient;
@FeignClient(name = "${feign.shopmall.name}", path = "${feign.shopmall.path}/api/aftersalesorder", contextId = "feignAfterSalesOrderApi", decode404 = true)
@FeignClient(name = "${feign.shopmall.name}", path = "/api/aftersalesorder", contextId = "feignAfterSalesOrderApi", decode404 = true)
public interface ShopmallAfterSalesOrderApiService {
}
......@@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
@FeignClient(name = "${feign.shopmall.name}", path = "${feign.shopmall.path}/api/goods", contextId = "feignGoodsApiApi", decode404 = true)
@FeignClient(name = "${feign.shopmall.name}", path = "/api/goods", contextId = "feignGoodsApiApi", decode404 = true)
public interface ShopmallGoodsApiService {
/**
......
......@@ -8,7 +8,7 @@ import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@FeignClient(name = "${feign.shopmall.name}", path = "${feign.shopmall.path}/api/order", contextId = "feignOrderApiApi", decode404 = true)
@FeignClient(name = "${feign.shopmall.name}", path = "/api/order", contextId = "feignOrderApiApi", decode404 = true)
public interface ShopmallOrderApiService {
/**
......
......@@ -6,7 +6,6 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;
......@@ -24,7 +23,6 @@ import static java.util.TimeZone.getTimeZone;
@Slf4j
@EnableRestAdmin
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"cn.com.glsx.*.api"})
@SpringBootApplication
public class Application {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!