Removed redundant override of the configure method

Since the `SampleJerseyApplication` class is already passed in the
`SpringApplicationBuilder` constructor, there is no need to override the
configure method of the `SpringBootServletInitializer` class.

Closes gh-5773
This commit is contained in:
Fabrizio Cucci 2016-04-22 16:58:47 +01:00 committed by Stephane Nicoll
parent 014883253a
commit 3c901fef42
1 changed files with 0 additions and 5 deletions

View File

@ -23,11 +23,6 @@ import org.springframework.boot.context.web.SpringBootServletInitializer;
@SpringBootApplication
public class SampleJerseyApplication extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(SampleJerseyApplication.class);
}
public static void main(String[] args) {
new SampleJerseyApplication()
.configure(new SpringApplicationBuilder(SampleJerseyApplication.class))