btyjj-inspection/src/main/java/com/cm/inspection/startup/StartUp.java

31 lines
868 B
Java
Raw Normal View History

2020-03-30 17:08:24 +08:00
package com.cm.inspection.startup;
import com.cm.inspection.service.process.IProcessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;
/**
* When you feel like quitting. Think about why you started
* 当你想要放弃的时候想想当初你为何开始
*
* @ClassName: StartUp
* @Description:
* @Author: WangGeng
* @Date: 2020/3/30 11:48
* @Version: 1.0
**/
@Component
public class StartUp implements ApplicationRunner {
@Autowired
private IProcessService processService;
@Override
public void run(ApplicationArguments args) throws Exception {
// 部署流程
processService.deployProcess("check-self", "网格员检查上报流程");
}
}