首页>代码>spring mvc+spring整合cxf服务端和客户端之间访问(jaxws与jaxrs的使用)>/WebServiceDemoAndSpringMVC/src/main/java/com/jbw/features/MyFeatures.java
package com.jbw.features; import org.apache.cxf.Bus; import org.apache.cxf.feature.AbstractFeature; import org.apache.cxf.interceptor.InterceptorProvider; import org.apache.cxf.interceptor.LoggingInInterceptor; import org.apache.cxf.interceptor.LoggingOutInterceptor; import com.jbw.intercepter.AuthInterceptor; /** * * @author Administrator * @Description 捆绑多个拦截器 */ public class MyFeatures extends AbstractFeature{ @Override protected void initializeProvider(InterceptorProvider provider, Bus bus) { super.initializeProvider(provider, bus); provider.getInInterceptors().add(new LoggingInInterceptor()); provider.getInInterceptors().add(new LoggingOutInterceptor()); provider.getInInterceptors().add(new AuthInterceptor()); } }

liweiyishuo LV3
2021年12月2日
miaozhenyu LV2
2020年4月9日
eddxbb LV3
2019年9月9日
wsupsup LV16
2019年8月12日
wbbhappy LV13
2019年2月21日
zhu6272051 LV1
2019年2月20日
jywdream LV11
2019年2月13日
x646936674 LV10
2018年10月20日
67806686 LV1
2018年7月20日
ccccjb LV3
2018年6月8日