spring + maven + cxf
来源:互联网 发布:阿里云服务器下载文件 编辑:程序博客网 时间:2024/06/06 07:16
引入cxf
配置web.xml
cxf.xml
最后访问 项目/services/XXXServerI?wsdl查看发布是否成功
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-frontend-jaxws</artifactId>
- <version>${cxf.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-transports-http</artifactId>
- <version>${cxf.version}</version>
- </dependency>
-
- <!-- aegis数据绑定标准,暂时用不上 -->
- <!-- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-databinding-aegis</artifactId>
- <version>${cxf.version}</version>
- </dependency> -->
-
- <!-- 本地运行环境,发布tomcat可以不需要
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-transports-http-jetty</artifactId>
- <version>${cxf.version}</version>
- </dependency>
-
- 基本上不用这个东东,太大了
- <dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>apache-cxf</artifactId>
<version>${cxf.version}</version>
<type>pom</type>
</dependency> -->
- <context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
...
/WEB-INF/cxf-beans.xml
</param-value>
</context-param> - <servlet>
- <servlet-name>CXFServlet</servlet-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>/services/*</url-pattern>
- </servlet-mapping>
- <?xml version="1.0" encoding="UTF-8"?>
- <beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:context="http://www.springframework.org/schema/context"
- xmlns:jaxws="http://cxf.apache.org/jaxws"
- xsi:schemaLocation="http://cxf.apache.org/jaxws
- http://cxf.apache.org/schemas/jaxws.xsd
- http://www.springframework.org/schema/beans
- http://www.springframework.org/schema/beans/spring-beans.xsd
- http://www.springframework.org/schema/context
- http://www.springframework.org/schema/context/spring-context-3.0.xsd"
- >
- <import resource="classpath*:META-INF/cxf/cxf.xml" />
- <import resource="classpath*:META-INF/cxf/cxf-servlet.xml" />
- <jaxws:endpoint id="XXXInterface" implementor="XXX.impl.XXXServerImpl"
- address="/XXXServerI">
- </jaxws:endpoint>
- </beans>
最后访问 项目/services/XXXServerI?wsdl查看发布是否成功
0
上一篇:SSO之CAS备忘
下一篇:maven必用插件
相关热门文章
- http://www.mv-startups.de/Po...
- http://www.myopowers.com/www...
- ip密码忘记了怎么办。一分钟知...
- nike sb or left foot vs. rig...
- wherever he goes He took
- bootStrap中Tab页签切换
- 京东SSO单点登陆实现分析...
- 利用ajax实现简单的注册验证局...
- WebRTC学习笔记
- highcharts使用之饼图
- 谁能够帮我解决LINUX 2.6 10...
- 现在的博客积分不会更新了吗?...
- shell怎么读取网页内容...
- ssh等待连接的超时问题...
- curl: (56) Recv failure: Con...
给主人留下些什么吧!~~
评论热议
0 0
- spring + maven + cxf
- eclipse + maven + cxf +spring
- Maven 集成CXF Webservice,Spring
- spring maven cxf jackson restful
- cxf、spring和maven整合
- webservice cxf+spring maven项目
- CXF+Spring+Maven之服务端
- Spring+CXF+Maven发布Webservice
- maven + spring + spring mvc + mybatis + cxf Demo
- maven+spring+cxf编写web service
- maven+spring+cxf编写web service (2)
- Eclipse+Maven+Spring+CXF 构建webservice 服务
- maven+CXF+Spring+tomcat 开发webservice
- Spring mvc + CXF Webservice/Restful Maven
- spring+cxf+maven+rest风格+json/xml
- 使用maven搭建Spring整合cxf
- Spring+Apache CXF+MyBatis+Maven实例
- Eclipse+Maven+Spring+CXF 构建webservice 服务
- Memcached入门--2.java客户端
- dereferencing pointer to incomplete type
- 原来做了这么多年狗
- Linux访问Windows共享文件夹
- SSO之CAS备忘
- spring + maven + cxf
- maven必用插件 tomcat热部署 以及 指定jdk版本
- web项目测试环境
- asp.net WebForm 前台获取后台c#代码信息
- mysql连表查询之left join on / right join on / inner&nb
- sqlmap tamper绕过WAF
- Java 中的多态和动态绑定
- 【pingce360】传小米平板MIPAD采用MTK8125四核 或售999元
- Android动态切换主题
原创粉丝点击
热门IT博客
热门问题
老师的惩罚
人脸识别
我在镇武司摸鱼那些年
重生之率土为王
我在大康的咸鱼生活
盘龙之生命进化
天生仙种
凡人之先天五行
春回大明朝
姑娘不必设防,我是瞎子
咋样教育孩子
青夏教育精英家教网
女初中生和男家教h
h细致竹马高中生家教
西安一对一上门家教
家明
家明和凤枝
遇到家庭暴力怎么办
反家庭暴力
什么是家庭暴力
家庭暴力
家庭暴力怎么办
家爆
蒲黄榆人流医院哪家好
榆家湾的故事在线阅读
蒲黄榆哪家医院好
榆家湾的故事全文
金叶榆基地
高接金叶榆
黄榆木家具
老榆木家具厂
韩式榆木家具
榆木门
榆木地板的优缺点
头一次去女方家四样礼
张行长第二次来我家在线阅读
家国梦供货每天多少次
青岛李家女姑50元一次
家法
新家法
家法作文
新家法粤语
家法训诫
家法板子
家法挨打
自罚家法
家法往屁股里塞东西
新婚之夜尝家法
男友用家法教训女友
男孩用家法折磨女孩阴
家法伺候裤子褪去趴下作文