Multiple resouceBean configuration in CXF using Spring

前端 未结 4 997
迷失自我
迷失自我 2021-01-03 08:06

I\'m using CXF RS 2.5.1 with Spring 3.0.6-RELEASE. I would like to have multiple implementation classes for \"a single endpoint\". I see that this issue was reported and fix

4条回答
  •  轮回少年
    2021-01-03 08:38

    You can probably simplify the logic to do with comparing the root resources, example, knowing the request URI and the name of the root resource class can be sufficient to make the decision, checking the individual methods looks complicated. BTW, the custom resource comparators are only needed when either root resources and/or individual resource methods can become the equal candidates

提交回复
热议问题