Explorar o código

消息中心开启openfeign支持

rengb %!s(int64=3) %!d(string=hai) anos
pai
achega
4f94e79ac8

+ 2 - 0
message-service/src/main/java/com/lantone/MessageServiceApplication.java

@@ -3,8 +3,10 @@ package com.lantone;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
+import org.springframework.cloud.openfeign.EnableFeignClients;
 
 @EnableEurekaClient
+@EnableFeignClients
 @SpringBootApplication
 public class MessageServiceApplication {