The warning means you have a resource method annotated with @Path("https://stackoverflow.com/")
or @Path("")
. For instance
@Path("test")
public class Test {
@GET
@Path("https://stackoverflow.com/")
public String test(){}
}
Not sure why Jersey would give a warning, maybe just to make sure that’s what you really want. The reason is that a resource method with @Path("https://stackoverflow.com/")
is redundant, as it’s already implied if you were just to do
@Path("test")
public class Test {
@GET
public String test(){}
}
without the @Path("https://stackoverflow.com/")
. It works the same. So if you have these, remove them, and it should take away the warnings.