Skip to content

Instantly share code, notes, and snippets.

@Guvenir
Created June 11, 2016 08:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Guvenir/c15f9d1388a5ddb4f8948f3b5ed9feae to your computer and use it in GitHub Desktop.
Save Guvenir/c15f9d1388a5ddb4f8948f3b5ed9feae to your computer and use it in GitHub Desktop.
Spring Boot Servlet Initializer
@SpringBootApplication
public class Application extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(Application.class);
}
public static void main(String[] args) throws Exception {
SpringApplication.run(Application.class, args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment