Rest风格之常见问题

一:

严重: A sub-resource locator, public javax.ws.rs.core.Response com.xormedia.liveevent.user.resource.UserResource.boundAccountInfomation(com.xormedia.liveevent.user.LesUserModel), can not have an entity parameter. Try to move the parameter to the corresponding resource method.
2013-3-27 14:07:45 com.sun.jersey.server.impl.application.WebApplicationImpl newResourceClass
严重: Fatal issues found at class com.xormedia.liveevent.user.resource.UserResource. See logs for more details.

代码:

@Path("/user/boundaccountinformation/wfes")
    @Consumes({MediaType.APPLICATION_XML,MediaType.APPLICATION_JSON})
    public Response boundAccountInfomation(LesUserModel lesUserModel){

     //

}

问题在于该方法缺少Http动作的标识。

你可能感兴趣的:(java,REST,issues,found,fatal,a)