一、发布WebService(CXF)服务:
- 通过pom.xml,在项目中引入cxf相关的jar包。
- 根据wsdl反向生成webservice服务端(3种方法),将代码引入项目中。
- web.xml中加入cxf配置。
- 增加cxf配置文件(application-webservice.xml),来发布webservice服务。
- 将cxf配置文件加到appliction-springmvc.xml配置文件中(注:如果有appliction-shiro.xml,注意要在appliction-shiro.xml中做相关配置)。
- 启动tomcat服务,访问wsdl地址,看是否发布成功。