|
@@ -3,7 +3,6 @@ package com.dashitech.migration;
|
3
|
3
|
import com.dashitech.utils.SpringContextHolder;
|
4
|
4
|
import org.apache.commons.logging.Log;
|
5
|
5
|
import org.apache.commons.logging.LogFactory;
|
6
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
7
|
6
|
import org.springframework.beans.factory.annotation.Value;
|
8
|
7
|
import org.springframework.stereotype.Service;
|
9
|
8
|
|
|
@@ -16,17 +15,14 @@ public class StartApplication {
|
16
|
15
|
|
17
|
16
|
public static Log log = LogFactory.getLog(StartApplication.class);
|
18
|
17
|
|
19
|
|
- @Autowired
|
20
|
|
- SqlTask hospitalTask;
|
21
|
|
-
|
22
|
18
|
@Value("${application.name}")
|
23
|
19
|
private String appName;
|
24
|
20
|
|
25
|
21
|
public void start() {
|
26
|
22
|
log.info("########### 开始迁移任务!###########");
|
27
|
23
|
SqlTask task = null;
|
28
|
|
-// task = SpringContextHolder.getBean("dictionaryTask");
|
29
|
|
-// task.start();
|
|
24
|
+ task = SpringContextHolder.getBean("dictionaryTask");
|
|
25
|
+ task.start();
|
30
|
26
|
// task = SpringContextHolder.getBean("tokenTask");
|
31
|
27
|
// task.start();
|
32
|
28
|
// task = SpringContextHolder.getBean("attachmentTask");
|