StartCommand.java
675 Bytes
package com.bsth;
import com.bsth.service.Line2SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
/**
* 随应用启动运行
* @author PanZhao
*
*/
@Component
public class StartCommand implements CommandLineRunner{
@Autowired
Line2SystemService line2SystemService;
@Override
public void run(String... arg0){
try {
//将增量的线路load到对照清单
line2SystemService.loadByLineInfo();
//OldWSClient.returnCCInfo();
//OldWSClient.getCurrentDayPlan();
} catch (Exception e) {
e.printStackTrace();
}
}
}