Commit 892c1a52 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #5773 from fabriziocucci/patch-1

* pr/5773:
  Polish
  Removed redundant override of the configure method
parents 01488325 f71a207a
......@@ -25,7 +25,7 @@ import org.springframework.stereotype.Component;
@Path("/hello")
public class Endpoint {
private Service service;
private final Service service;
public Endpoint(Service service) {
this.service = service;
......
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment