Project

General

Profile

1
package eu.dnetlib.statsapi;
2

    
3
import org.springframework.boot.SpringApplication;
4
import org.springframework.boot.autoconfigure.SpringBootApplication;
5
import org.springframework.boot.web.support.SpringBootServletInitializer;
6
import org.springframework.context.annotation.PropertySource;
7
import org.springframework.context.annotation.PropertySources;
8
import org.springframework.web.bind.annotation.CrossOrigin;
9
import org.springframework.web.bind.annotation.RequestMethod;
10

    
11
@PropertySources({
12
        @PropertySource("classpath:dnet-override.properties"),
13
        @PropertySource("classpath:log4j.properties")}
14
)
15
@SpringBootApplication
16
@CrossOrigin(methods = RequestMethod.GET, origins = "*")
17
public class Application extends SpringBootServletInitializer {
18

    
19
    public static void main(String[] args) {
20
        SpringApplication.run(Application.class, args);
21

    
22
    }
23
}
24

    
25

    
26

    
    (1-1/1)