Skip to content

Instantly share code, notes, and snippets.

@smlc
Created March 15, 2017 10:41
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 smlc/83da6798344f0dcdf88af2e9320b1f71 to your computer and use it in GitHub Desktop.
Save smlc/83da6798344f0dcdf88af2e9320b1f71 to your computer and use it in GitHub Desktop.
SpringBootServletInitializer
package com.ws;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
@SpringBootApplication
public class WebServiceApplication extends SpringBootServletInitializer{
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(WebServiceApplication.class);
}
public static void main(String[] args) {
SpringApplication.run(WebServiceApplication.class, args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment