南昌市物联网技防平台-后台
zengh
2021-06-01 cd2cfd37366002f790a2ed1435962d4eff7d5cec
blade-service/blade-jfpts/src/main/java/org/springblade/jfpt/JfptApplication.java
@@ -18,10 +18,13 @@
import org.springblade.core.cloud.feign.EnableBladeFeign;
import org.springblade.core.launch.BladeApplication;
import org.springblade.core.launch.constant.AppConstant;
import org.springblade.jfpt.nettyServer.Server;
import org.springblade.jfpt.nettyTcpServer.TcpServer;
import org.springblade.jfpt.nettyUdpServer.server.UdpServer;
import org.springblade.jfpt.webscoket.WebSocketServer;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
/**
 * Desk启动器
@@ -31,11 +34,19 @@
@EnableBladeFeign
@SpringBootApplication
// @SeataCloudApplication
public class JfptApplication {
public class JfptApplication implements CommandLineRunner {
   public static void main(String[] args) {
      BladeApplication.run("blade-jfpts", JfptApplication.class, args);
   }
   @Override
   public void run(String... args) throws Exception {
      Server server=new Server(8088);
      TcpServer tcpServer = new TcpServer(8099);
      WebSocketServer webSocketServer= new WebSocketServer(9034);
//      UdpServer udpServer = new UdpServer(9534);
//      Server serverTwo = new Server(9534);
   }
}