/*
|
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
|
*
|
* Redistribution and use in source and binary forms, with or without
|
* modification, are permitted provided that the following conditions are met:
|
*
|
* Redistributions of source code must retain the above copyright notice,
|
* this list of conditions and the following disclaimer.
|
* Redistributions in binary form must reproduce the above copyright
|
* notice, this list of conditions and the following disclaimer in the
|
* documentation and/or other materials provided with the distribution.
|
* Neither the name of the dreamlu.net developer nor the names of its
|
* contributors may be used to endorse or promote products derived from
|
* this software without specific prior written permission.
|
* Author: Chill 庄骞 (smallchill@163.com)
|
*/
|
package org.springblade.jfpt;
|
|
import org.springblade.core.cloud.feign.EnableBladeFeign;
|
import org.springblade.core.launch.BladeApplication;
|
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.cloud.client.discovery.EnableDiscoveryClient;
|
|
/**
|
* Desk启动器
|
*
|
* @author Chill
|
*/
|
@EnableBladeFeign
|
@SpringBootApplication
|
// @SeataCloudApplication
|
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);
|
}
|
}
|