WebService -- Java 实现之 CXF ( 使用Spring添加拦截器)

最重要的就是在ApplicationContext.xml下面添加配置

      <!-- service provider  -->
	<jaxws:endpoint
	    implementor="#helloWorld"
	    address="/HelloWorld">
	    <!-- in Interceptor-->
	    <jaxws:inInterceptors>
	         <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/>	         
	    </jaxws:inInterceptors>
	    <!-- out Interceptor -->
	    <jaxws:outInterceptors>
	         <bean class="org.apache.cxf.interceptor.LoggingInInterceptor"/>
	    </jaxws:outInterceptors>
	 </jaxws:endpoint>

 

posted @ 2017-01-01 23:42  TonyZhang24  阅读(1265)  评论(0编辑  收藏  举报