| | |
| | | package com.ld.igds.io; |
| | | |
| | | |
| | | import com.ld.igds.data.ConfigData; |
| | | import com.ld.igds.io.fzzy.server.BhznQuantityServerEngine; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.CommandLineRunner; |
| | | import org.springframework.core.annotation.Order; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | |
| | | /** |
| | | * 可以根据配置文件灵活调整 |
| | |
| | | @Override |
| | | public void run(String... strings) throws Exception { |
| | | |
| | | // if (configData.getActive().equals("dev")) { |
| | | // serverEngine.start(BhznQuantityServerEngine.PORT); |
| | | // return; |
| | | // } |
| | | // |
| | | // //风正致远默认部署服务当前应用使用9000端口 |
| | | // if (configData.getActive().indexOf("pro") >= 0) { |
| | | // serverEngine.start(BhznQuantityServerEngine.PORT); |
| | | // return; |
| | | // } |
| | | if (configData.getActive().equals("dev")) { |
| | | serverEngine.start(BhznQuantityServerEngine.PORT); |
| | | return; |
| | | } |
| | | |
| | | if (configData.getActive().indexOf("pro") >= 0) { |
| | | serverEngine.start(BhznQuantityServerEngine.PORT); |
| | | return; |
| | | } |
| | | } |
| | | } |