这是由于web.xml配置中cxfServlet拦截了所有的请求, 应该改为如下配置,让它只拦截特定请求 转载于:https://www.cnblogs.com/sylfei/p/6832712.html