|
@@ -6,11 +6,13 @@ import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
|
|
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
|
|
import org.springframework.context.ConfigurableApplicationContext;
|
|
|
+import org.springframework.context.annotation.ComponentScan;
|
|
|
|
|
|
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
|
|
|
@EnableDiscoveryClient
|
|
|
//@Controller
|
|
|
@RefreshScope
|
|
|
+@ComponentScan(basePackages = {"com.fdkankan.redis","com.fdkankan.gateway"})
|
|
|
public class GatewayApplication {
|
|
|
|
|
|
public static void main(String[] args) {
|