package org.gyk.modules;

import org.gyk.modules.sssj.util.*;
import org.gyk.modules.websocket.webSocket;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@ServletComponentScan(basePackages = {"org.gyk.modules.sssj","org.gyk.modules.sz","org.gyk.modules.lssj","org.gyk.modules.websocket"})
@EnableScheduling
@EnableAsync
@EnableCaching
@ComponentScan(basePackages = {"org.gyk.modules","org.gyk.modules.sssj","org.gyk.modules.sz","org.gyk.modules.lssj","org.gyk.modules.jlgl","org.gyk.modules.websocket"})
@EnableTransactionManagement
@SpringBootApplication(scanBasePackages="org.gyk.modules",exclude = DataSourceAutoConfiguration.class)
public class App {

    public static void main(String[] args) {
        SpringApplication.run(App.class, args);

//        new saveBj("保存报警历史",new webSocket()).start();

//        new YasuojBj("保存压缩机报警历史",new webSocket()).start();

//        new saveKrBj("保存可燃气体报警历史",new webSocket()).start();
        //发布时要去掉注释
//        new saveYasuojiData().start();

//        new saveData("保存计量点实时数据").start();

//        new saveNgzxData("保存能管中心数据").start();
    }
}
