package cz.pragueparking.web;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@SpringBootApplication
@EnableWebMvc
@ComponentScan
public class ParkingApplication extends SpringBootServletInitializer {

    public static void main(String[] args) throws Exception {
        SpringApplication.run(ParkingApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(ParkingApplication.class);
    }

}
@@ -180,114 +180,49 @@
 oot.
-builder.SpringApplicationBuilder;%0Aimport org.springframework.boot.context.web.SpringBootServletInitializer
+autoconfigure.web.WebMvcAutoConfiguration
 ;%0Aim
@@ -448,36 +448,31 @@
 nds 
-SpringBootServletInitializer
+WebMvcAutoConfiguration
  %7B%0A%0A
@@ -607,177 +607,5 @@
  %7D%0A%0A
-    @Override%0A    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) %7B%0A        return application.sources(ParkingApplication.class);%0A    %7D%0A%0A
 %7D

Fix not serving static content