diff --git a/oneLineTxt/v1/onelinetextplublic/service-map/pom.xml b/oneLineTxt/v1/onelinetextplublic/service-map/pom.xml index c01079f..ae8b003 100644 --- a/oneLineTxt/v1/onelinetextplublic/service-map/pom.xml +++ b/oneLineTxt/v1/onelinetextplublic/service-map/pom.xml @@ -49,6 +49,10 @@ 3.3.2 + + org.springframework.cloud + spring-cloud-starter-openfeign + diff --git a/oneLineTxt/v1/onelinetextplublic/service-map/src/main/java/com/mashibing/service/map/ServiceMapApplication.java b/oneLineTxt/v1/onelinetextplublic/service-map/src/main/java/com/mashibing/service/map/ServiceMapApplication.java index eeef04d..9b77728 100644 --- a/oneLineTxt/v1/onelinetextplublic/service-map/src/main/java/com/mashibing/service/map/ServiceMapApplication.java +++ b/oneLineTxt/v1/onelinetextplublic/service-map/src/main/java/com/mashibing/service/map/ServiceMapApplication.java @@ -3,6 +3,7 @@ package com.mashibing.service.map; 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.annotation.Bean; import org.springframework.web.client.RestTemplate; @@ -21,6 +22,7 @@ import org.springframework.web.client.RestTemplate; */ @SpringBootApplication @EnableDiscoveryClient +@EnableFeignClients public class ServiceMapApplication { public static void main(String[] args) { SpringApplication.run(ServiceMapApplication.class,args);