A resource model has ambiguous (sub-)resource method for HTTP method GET and input mime-types as defined by“@Consumes” and “@Produces” annotations

后端 未结 4 1426
北荒
北荒 2021-01-17 17:37

How can the following produce this error when they have different URLs ?

@Path(\"/job/{empId}/empProfile\")
public EmpProfileResource delegateToEventProfileR         


        
4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-17 18:11

    I had the same error. Most people resolved the error by changing their @Path annotations because they where ubiquitous. In my case something different happened. I modified a package from aaa to bbb for example. For some reason in the artifact deployed to the server there where both the aaa and bbb packages, so the resources where duplicated and the server raised the exception. I had to clear the previous deployed artifact and deploy the new. Someone may check this case also where the error appears. Of course at the end of the day the reason is again a path ubiquity. I am suffering with the same problem i have also updated a version check but its give me a same problem may jersey frame works is not supporting this

提交回复
热议问题