博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
cxf 发布服务
阅读量:7099 次
发布时间:2019-06-28

本文共 661 字,大约阅读时间需要 2 分钟。

hot3.png

public static void main(String[] args) {		//1. 第一种启动cxf的方式	    System.out.println("第一种启动cxf的方式");		ServerFactoryBean factory=new ServerFactoryBean();		factory.setAddress("http://localhost:8080/helloworld");		factory.setServiceClass(HelloWorldImpl.class);		factory.setServiceBean(new HelloWorldImpl());		factory.create();		System.out.println("cxf service 启动成功");				//2. 第二种启动cxf的方式  jar ws 自带		/*		  HelloWorldImpl implementor= new HelloWorldImpl();          String address="http://localhost:8080/helloworld";          Endpoint.publish(address, implementor);          System.out.println("web service started");*/	}

转载于:https://my.oschina.net/KingPan/blog/464437

你可能感兴趣的文章
css3-12 transition+css或transform实现过渡动画
查看>>
dp4--codeVs1043 方格取数
查看>>
oracle Loop循环示例
查看>>
linux 误删文件恢复
查看>>
用python3操作mysql数据库实现企业级产品参数查询
查看>>
MVC5_学习笔记_1_CodeFirst
查看>>
【提权】注入进程提权
查看>>
[新手学Java]使用内省(Introspector)操作JavaBean属性
查看>>
课堂作业05
查看>>
文字两边对齐
查看>>
SQL数据库基础
查看>>
集训第六周 数学概念与方法 计数 排列 L题
查看>>
HDU 4029 Distinct Sub-matrix [后缀数组]
查看>>
Code Formatter
查看>>
svn工具安装下载Tomcat源码以及导入eclipse
查看>>
javascript简介
查看>>
【后缀数组】【二分答案】poj3261
查看>>
【二维莫队】【二维分块】bzoj2639 矩形计算
查看>>
【DFS】bzoj2435 [Noi2011]道路修建
查看>>
敏捷开发--scrum
查看>>