@Path("test")
public TestResource {
@GET
public Response testGet() {
return Response.ok().build();
}
}
From the spring boot documentation, the section on JAX-RS and Jersey, "All the registered endpoints should be @Components with HTTP resource annotations (@GET etc.), e.g.". The above resource still works without the @Component annotation. What would I be breaking by leaving out the @Component annotation?