Blame view

src/main/java/fr/plil/sio/web/mvc/Application.java 921 Bytes
8efec875   Julien Iguchi-Cartigny   switch to spring ...
1
2
3
4
5
6
7
8
  package fr.plil.sio.web.mvc;
  
  import org.springframework.boot.SpringApplication;
  import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
  import org.springframework.boot.builder.SpringApplicationBuilder;
  import org.springframework.boot.context.web.SpringBootServletInitializer;
  import org.springframework.context.annotation.ComponentScan;
  import org.springframework.context.annotation.Configuration;
2070653e   Julien Iguchi-Cartigny   Switching to spri...
9
  import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
8efec875   Julien Iguchi-Cartigny   switch to spring ...
10
11
12
13
  
  @EnableAutoConfiguration
  @Configuration
  @ComponentScan
2070653e   Julien Iguchi-Cartigny   Switching to spri...
14
  @EnableJpaRepositories
8efec875   Julien Iguchi-Cartigny   switch to spring ...
15
16
17
18
19
20
21
22
23
24
25
  public class Application extends SpringBootServletInitializer {
  
      public static void main(String[] args) {
          SpringApplication.run(Application.class, args);
      }
  
      @Override
      protected final SpringApplicationBuilder configure(final SpringApplicationBuilder application) {
          return application.sources(Application.class);
      }
  }