Blame view

src/main/java/fr/plil/sio/web/mvc/Application.java 653 Bytes
8efec875   Julien Iguchi-Cartigny   switch to spring ...
1
2
3
  package fr.plil.sio.web.mvc;
  
  import org.springframework.boot.SpringApplication;
88ff471f   Julien Cartigny   Switching to spri...
4
  import org.springframework.boot.autoconfigure.SpringBootApplication;
322c9502   Julien Cartigny   Ad Spring securit...
5
6
  import org.springframework.boot.builder.SpringApplicationBuilder;
  import org.springframework.boot.web.support.SpringBootServletInitializer;
8efec875   Julien Iguchi-Cartigny   switch to spring ...
7
  
8efec875   Julien Iguchi-Cartigny   switch to spring ...
8
  
88ff471f   Julien Cartigny   Switching to spri...
9
  @SpringBootApplication
322c9502   Julien Cartigny   Ad Spring securit...
10
  public class Application extends SpringBootServletInitializer {
8efec875   Julien Iguchi-Cartigny   switch to spring ...
11
12
13
      public static void main(String[] args) {
          SpringApplication.run(Application.class, args);
      }
322c9502   Julien Cartigny   Ad Spring securit...
14
15
16
17
18
  
      @Override
      protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
          return application.sources(Application.class);
      }
8efec875   Julien Iguchi-Cartigny   switch to spring ...
19
  }