package com.xdap.self_development;

import com.github.kfcfans.powerjob.worker.autoconfigure.PowerJobAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.mongo.embedded.EmbeddedMongoAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableCaching
@SpringBootApplication(
        exclude = {EmbeddedMongoAutoConfiguration.class, PowerJobAutoConfiguration.class}
)
@EnableTransactionManagement
@EnableScheduling
@ComponentScan(basePackages = {"com.definesys.mpaas", "com.xdap.*"})
public class MainApplication {
    public static void main(String[] args) {
        SpringApplication.run(MainApplication.class, args);
    }
}
