南昌市物联网技防平台-后台
nnnjjj123
2021-03-02 7b3fb2ea4eb3c8539ce3019bfafacb7ca3b21096
blade-service/blade-jfpts/src/main/java/org/springblade/jfpt/JfptApplication.java
@@ -18,10 +18,10 @@
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.nettyUdpServer.server.UdpServer;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.SpringCloudApplication;
/**
 * Desk启动器
@@ -31,11 +31,17 @@
@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);
      UdpServer udpServer=new UdpServer(8099);
   }
}