spring-cfx.xml
cfx3.x版本,这里只需要配置一条就行了,原先是3条
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd" >
<!--implementor:webservice 的实现类 address 访问地址-->
<import resource="classpath:META-INF/cxf/cxf.xml" />
<!--server端的配置-->
<jaxws:endpoint id="lookService" implementor="com.uplooking.club.service.impl.LookerServiceImpl"
address="/Lookerservice" />
</beans>
web.xml配置添加cfx的相关配置
<servlet>
<servlet-name>CXFServlet</servlet-name>
<display-name>CXFServlet</display-name>
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>CXFServlet</servlet-name>
<url-pattern>/webservice/*</url-pattern>
</servlet-mapping>