| | |
| | | package com.thhy; |
| | | |
| | | import com.thhy.materials.modules.biz.helmet.smoke.SmokeServer; |
| | | import org.mybatis.spring.annotation.MapperScan; |
| | | import org.springframework.boot.CommandLineRunner; |
| | | import org.springframework.boot.SpringApplication; |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.cloud.openfeign.EnableFeignClients; |
| | | import org.springframework.scheduling.annotation.EnableScheduling; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @SpringBootApplication |
| | | @MapperScan(basePackages = {"com.thhy.materials.modules.*.*.mapper"}) |
| | | @EnableFeignClients |
| | | @EnableScheduling |
| | | public class MaterialsApplication { |
| | | public class MaterialsApplication implements CommandLineRunner { |
| | | |
| | | @Resource |
| | | private SmokeServer smokeServer; |
| | | |
| | | public static void main(String[] args) { |
| | | SpringApplication.run(MaterialsApplication.class,args); |
| | | } |
| | | |
| | | @Override |
| | | public void run(String... args) throws Exception { |
| | | smokeServer.run(8973); |
| | | } |
| | | |
| | | } |