Created
October 11, 2015 20:53
-
-
Save gigenthomas/af4ffac4dc5b936916f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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