From c149e09009924881c7584ab19a169bb04d664b4a Mon Sep 17 00:00:00 2001 From: msb_89821 Date: Mon, 24 Oct 2022 17:16:08 +0800 Subject: [PATCH] =?UTF-8?q?add:=E5=AE=9E=E7=8E=B0Fiegin=20=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oneLineTxt/v1/onelinetextplublic/service-map/pom.xml | 4 ++++ .../java/com/mashibing/service/map/ServiceMapApplication.java | 2 ++ 2 files changed, 6 insertions(+) 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);