package eu.dnetlib.statsapi;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.annotation.PropertySources;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMethod;

@PropertySources({
        @PropertySource("classpath:dnet-override.properties"),
        @PropertySource("classpath:log4j.properties")}
)
@SpringBootApplication
@CrossOrigin(methods = RequestMethod.GET, origins = "*")
public class Application extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);

    }
}



