| | |
| | | package com.fzzy.igds; |
| | | |
| | | import com.fzzy.igds.iot.server.IotServerEngine; |
| | | import com.fzzy.igds.quantity.server.BhznQuantityServerEngine; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.CommandLineRunner; |
| | |
| | | public static final String BEAN_ID = "quantity.serverRunner"; |
| | | |
| | | @Resource |
| | | private BhznQuantityServerEngine serverEngine; |
| | | private BhznQuantityServerEngine quantityServerEngine; |
| | | @Resource |
| | | private IotServerEngine iotServerEngine; |
| | | |
| | | @Override |
| | | public void run(String... strings) throws Exception { |
| | | |
| | | serverEngine.start(BhznQuantityServerEngine.PORT); |
| | | //数量检测端口 |
| | | quantityServerEngine.start(BhznQuantityServerEngine.PORT); |
| | | |
| | | //IOT设备端口 |
| | | iotServerEngine.start(IotServerEngine.PORT); |
| | | |
| | | } |
| | | } |