package com.uas;

import com.uas.core.config.DynamicDataSourceRegister;
import com.uas.core.support.TokenPropertiesListener;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableCaching
@EnableScheduling
@Import({DynamicDataSourceRegister.class})
public class UasFbApplication {

    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(UasFbApplication.class);
        application.addListeners(new TokenPropertiesListener("http.properties"));
        application.run(args);
    }

}
