| | |
| | | import org.springblade.core.cloud.feign.EnableBladeFeign; |
| | | import org.springblade.core.launch.BladeApplication; |
| | | import org.springblade.core.launch.constant.AppConstant; |
| | | import org.springblade.system.nettyServer.Server; |
| | | import org.springblade.system.nettyUdpServer.server.UdpServer; |
| | | import org.springframework.boot.CommandLineRunner; |
| | | import org.springframework.cloud.client.SpringCloudApplication; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @EnableBladeFeign |
| | | @SpringCloudApplication |
| | | public class SystemApplication { |
| | | public class SystemApplication implements CommandLineRunner { |
| | | |
| | | public static void main(String[] args) { |
| | | BladeApplication.run(AppConstant.APPLICATION_SYSTEM_NAME, SystemApplication.class, args); |
| | | } |
| | | |
| | | @Override |
| | | public void run(String... args) throws Exception { |
| | | UdpServer udpServer = new UdpServer(9534); |
| | | Server server = new Server(9534); |
| | | UdpServer udpServer8011 = new UdpServer(8011); |
| | | Server server8011 = new Server(8011); |
| | | } |
| | | } |
| | | |