31 lines
868 B
Java
31 lines
868 B
Java
|
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", "网格员检查上报流程");
|
|||
|
}
|
|||
|
}
|