package com.panzhihua.service_property; import com.panzhihua.service_property.netty.NettyServer; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.client.SpringCloudApplication; import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker; import org.springframework.cloud.netflix.eureka.EnableEurekaClient; import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.context.annotation.ComponentScan; import javax.annotation.Resource; import java.net.InetSocketAddress; @SpringCloudApplication @EnableFeignClients(basePackages = {"com.panzhihua.common.service"}) @EnableEurekaClient @EnableCircuitBreaker @ComponentScan({"com.panzhihua.service_property", "com.panzhihua.common"}) @SpringBootApplication public class ServicePropertyApplication { public static void main(String[] args) { SpringApplication.run(ServicePropertyApplication.class, args); new NettyServer().start(); } }