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:
parent
014883253a
commit
3c901fef42
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue