JAX-RS does not work if there is no resource method marked with @UriTemplate 
only
---------------------------------------------------------------------------------

                 Key: CXF-1271
                 URL: https://issues.apache.org/jira/browse/CXF-1271
             Project: CXF
          Issue Type: Sub-task
          Components: REST
    Affects Versions: 2.1
            Reporter: Jervis Liu
            Assignee: Jervis Liu


At the moment you need to have a resource method only marked with @UriTemplate 
(no     @HttpMethod("") annotation). This tells jax-rs runtime this resource 
class has subResources. I.e.:

    //FIXME: wont work if remove this method, has to set hasSubResource to true
    @UriTemplate("/anyURLWilldo")
    public String anyMethodNameWillDo() {
        return null;
    }



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to