1
|
package eu.dnetlib.usagestats.controllers;
|
2
|
|
3
|
/**
|
4
|
* Created by Glykeria Katsari on 2/21/2016.
|
5
|
*/
|
6
|
|
7
|
import org.springframework.boot.SpringApplication;
|
8
|
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
9
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
10
|
import org.springframework.boot.builder.SpringApplicationBuilder;
|
11
|
import org.springframework.boot.context.web.SpringBootServletInitializer;
|
12
|
import org.springframework.boot.orm.jpa.EntityScan;
|
13
|
import org.springframework.context.annotation.ComponentScan;
|
14
|
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
|
15
|
|
16
|
@SpringBootApplication
|
17
|
@EnableAutoConfiguration
|
18
|
@ComponentScan(basePackages = {"eu.dnetlib.usagestats.domain", "eu.dnetlib.usagestats.repos", "eu.dnetlib.usagestats.controllers"})
|
19
|
public class Application extends SpringBootServletInitializer {
|
20
|
|
21
|
/*Override spring boot run config and use spring 3.0 servlet init classes*/
|
22
|
|
23
|
@Override
|
24
|
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
|
25
|
return application.sources(Application.class);
|
26
|
}
|
27
|
|
28
|
public static void main(String[] args) {
|
29
|
SpringApplication.run(Application.class, args);
|
30
|
|
31
|
}
|
32
|
|
33
|
|
34
|
}
|
35
|
|
36
|
|
37
|
|