package com.uas.eis;

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;

import com.uas.eis.core.config.DynamicDataSourceRegister;
import com.uas.eis.core.support.TokenPropertiesListener;

@SpringBootApplication
@EnableCaching
@EnableScheduling
@Import({DynamicDataSourceRegister.class})
public class UasEisApplication {
	public static void main(String[] args) {
		SpringApplication application = new SpringApplication(UasEisApplication.class);
		//application.addListeners(new TokenPropertiesListener("token.properties"));
		application.addListeners(new TokenPropertiesListener("api_sign_key_mapping.properties"));
		application.run(args);
	}
	
}
