| | |
| | | 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.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"}) |
| | |
| | | |
| | | public static void main(String[] args) { |
| | | SpringApplication.run(ServicePropertyApplication.class, args); |
| | | NettyServer nettyServer = new NettyServer(); |
| | | nettyServer.start(new InetSocketAddress("192.168.5.149", 20012)); |
| | | } |
| | | |
| | | } |