Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gigenthomas/af4ffac4dc5b936916f3 to your computer and use it in GitHub Desktop.
Save gigenthomas/af4ffac4dc5b936916f3 to your computer and use it in GitHub Desktop.
@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);
}
}
and in gradle.build
configurations {
providedRuntime
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment