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:statsAPI.properties"),
|
13
|
@PropertySource("classpath:dnet-override.properties"),
|
14
|
@PropertySource("classpath:log4j.properties")}
|
15
|
)
|
16
|
@SpringBootApplication
|
17
|
@CrossOrigin(methods = RequestMethod.GET, origins = "*")
|
18
|
public class statsApi extends SpringBootServletInitializer {
|
19
|
|
20
|
public static void main(String[] args) {
|
21
|
SpringApplication.run(statsApi.class, args);
|
22
|
|
23
|
}
|
24
|
}
|
25
|
|
26
|
|
27
|
|