java - What does this strange Jersey warning mean? -


what warning mean in jersey 1.4:

warning: sub-resource method, public final java.lang.string com.xxx.render(),  uri template, "/", treated resource method 

this how method looks:

@get @produces(mediatype.application_xml) @path("/") public final string render() {   return "test"; } 

why need specify such path method? @get enough tell jersey default method entire class (i'm assuming class has @path("/myres") annotation).


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -