|
|
@@ -7,16 +7,13 @@ import org.springframework.context.annotation.Configuration;
|
|
|
public class ExportQueueConfig {
|
|
|
|
|
|
|
|
|
- private void initExportQueue(){
|
|
|
- //启动导出数据线程处理器
|
|
|
- ExportDataExecutor.startExportDataExecutor();
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
- public ExportQueueConfig exportQueueConfig(){
|
|
|
- ExportQueueConfig exportConfig = new ExportQueueConfig();
|
|
|
- exportQueueConfig().initExportQueue();
|
|
|
- return exportConfig;
|
|
|
+ public ExportQueue exportQueue(){
|
|
|
+ ExportQueue exportQueue = new ExportQueue();
|
|
|
+ exportQueue.initExportQueue();
|
|
|
+ return exportQueue;
|
|
|
}
|
|
|
}
|