李旭东
2023-11-03 a07b4b6ff1c98dcf81338bb45d59308db7c058a9
hd/pipe/materialsManage/src/main/java/com/thhy/MaterialsApplication.java
@@ -2,6 +2,7 @@
import com.thhy.materials.modules.biz.helmet.smoke.SmokeServer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@@ -16,6 +17,9 @@
@EnableScheduling
public class MaterialsApplication implements CommandLineRunner {
    @Value("${materialstcpport}")
    private Integer tcpport;
    @Resource
    private SmokeServer smokeServer;
@@ -25,7 +29,7 @@
    @Override
    public void run(String... args) throws Exception {
        smokeServer.run(15011);
        smokeServer.run(tcpport);
    }
}