|
|
|
@ -26,9 +26,13 @@ import org.springframework.stereotype.Component; |
|
|
|
@Path("/hello") |
|
|
|
@Path("/hello") |
|
|
|
public class Endpoint { |
|
|
|
public class Endpoint { |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
private Service service; |
|
|
|
private Service service; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
|
|
public Endpoint(Service service) { |
|
|
|
|
|
|
|
this.service = service; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@GET |
|
|
|
@GET |
|
|
|
public String message() { |
|
|
|
public String message() { |
|
|
|
return "Hello " + this.service.message(); |
|
|
|
return "Hello " + this.service.message(); |
|
|
|
|