Created
March 15, 2017 10:41
-
-
Save smlc/83da6798344f0dcdf88af2e9320b1f71 to your computer and use it in GitHub Desktop.
SpringBootServletInitializer
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
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