From 87b163d4034cf6d74cf075391b9fb1183afede5e Mon Sep 17 00:00:00 2001 From: 101captain <237651143@qq.com> Date: 星期二, 07 九月 2021 14:04:16 +0800 Subject: [PATCH] 物业报警相关提交 --- springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/ServicePropertyApplication.java | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/ServicePropertyApplication.java b/springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/ServicePropertyApplication.java index 470c32e..97501b0 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/ServicePropertyApplication.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/ServicePropertyApplication.java @@ -1,5 +1,6 @@ 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; @@ -7,6 +8,8 @@ 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"}) @@ -18,6 +21,8 @@ public static void main(String[] args) { SpringApplication.run(ServicePropertyApplication.class, args); + NettyServer nettyServer = new NettyServer(); + nettyServer.start(new InetSocketAddress("192.168.5.149", 20012)); } } -- Gitblit v1.7.1