【发布时间】:2016-10-12 05:49:48
【问题描述】:
我只在 cxf_client.xml 中添加了拦截器,但同样的拦截器也在调用传入的 api(即 cxf_server)。以下是我的更改。 有人可以告诉我为什么这个拦截器会调用传入的 API 吗? 是因为服务器和客户端使用相同的总线吗?
cxf_client.xml
<bean id="XCustomInterceptor" class="com.test.XCustomInterceptor"/>
<cxf:bus>
<cxf:inInterceptors>
<ref bean="XCustomInterceptor"/>
</cxf:inInterceptors>
<cxf:outInterceptors>
<ref bean="XCustomInterceptor"/>
</cxf:outInterceptors>
</cxf:bus>*
【问题讨论】:
标签: web-services cxf cxf-client java-ws