package com.panzhihua.service_property;
|
|
import com.panzhihua.service_property.netty.NettyServer;
|
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 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);
|
NettyServer nettyServer = new NettyServer();
|
nettyServer.start(new InetSocketAddress("192.168.5.149", 20012));
|
}
|
|
}
|