springboot cxf starter测试

springboot cxf starter教程项目实际测试

项目fork地址:

https://github.com/Amrf000/tutorial-soap-spring-boot-cxf

step1_simple_springboot_app_with_cxf

这是一个展示如何设置spring boot并引导一个可运行的cxf框架运行于内置的tomcat的演示,

  • 测试步骤:

  1. eclipse导入整个maven项目,build goal先写个tomcat:run执行构建完 有些项目有构建问题,但是这个例子没有

  2. 进入第一个项目 找到SimpleBootCxfApplication文件,以java application运行

  3. 运行后报bind错误 我的8080端口已经被使用了,打开application.properties添加server.port = 9333

  4. 再次运行,运行成功

step2_wsdl_2_java_maven

选择一个可选择的网络服务-定义为WSDL格式文件来自于流行的 http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL

展示如何在构建时使用JAX-WS Commons Maven plugin从WSDL文件生成AXB-Classes文件   - just run

mvn clean generate-sources
  • 测试步骤:

  1. 导入后的错误是"Plugin execution not covered by lifecycle configuration",

    https://github.com/actiontech/dble/issues/297,https://blog.csdn.net/huangjuegeek/article/details/44926741

     最简单的右键忽略掉这个错误... 1.Just click the link “Mark goal ... as ignored in Eclipse Build in ....” as my pictures above

  2. update一下错误消失,运行SimpleBootCxfApplication.java一些OK

  3. 检查generated-sources存在生成文件,从文件生成时间看确实是mvn生成的

step3_jaxws-endpoint-cxf-spri

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值