|
@@ -3,9 +3,7 @@ package com.caimei365.order;
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|
|
-import org.springframework.cloud.client.loadbalancer.LoadBalanced;
|
|
|
-import org.springframework.context.annotation.Bean;
|
|
|
-import org.springframework.web.reactive.function.client.WebClient;
|
|
|
+import org.springframework.cloud.openfeign.EnableFeignClients;
|
|
|
|
|
|
/**
|
|
|
* `@EnableEurekaClient`: 声明一个Eureka客户端,只能注册到Eureka Server
|
|
@@ -16,16 +14,17 @@ import org.springframework.web.reactive.function.client.WebClient;
|
|
|
*/
|
|
|
@EnableDiscoveryClient
|
|
|
@SpringBootApplication
|
|
|
+@EnableFeignClients
|
|
|
public class OrderApplication {
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
SpringApplication.run(OrderApplication.class, args);
|
|
|
}
|
|
|
|
|
|
- @Bean
|
|
|
- @LoadBalanced
|
|
|
- public WebClient.Builder webClientBuilder(){
|
|
|
- return WebClient.builder();
|
|
|
- }
|
|
|
+// @Bean
|
|
|
+// @LoadBalanced
|
|
|
+// public WebClient.Builder webClientBuilder(){
|
|
|
+// return WebClient.builder();
|
|
|
+// }
|
|
|
|
|
|
}
|