|
@@ -3,6 +3,8 @@ package com.tzld.piaoquan.api;
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
|
import org.springframework.boot.web.servlet.ServletComponentScan;
|
|
|
+import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|
|
+import org.springframework.cloud.openfeign.EnableFeignClients;
|
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
|
import springfox.documentation.swagger2.annotations.EnableSwagger2;
|
|
|
|
|
@@ -15,6 +17,8 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
|
|
|
})
|
|
|
@EnableSwagger2
|
|
|
@ServletComponentScan("com.tzld.piaoquan.api.filter")
|
|
|
+@EnableDiscoveryClient
|
|
|
+@EnableFeignClients
|
|
|
public class GrowthServerApplication {
|
|
|
public static void main(String[] args) {
|
|
|
SpringApplication.run(GrowthServerApplication.class, args);
|