在使用cxf发布RESTful风格的webSevice,项目发布成功,也能正确的调用接口,但是就是访问不到http://localhost:8080/Service/rest?_wadl
原因分析 cxf版本的问题 请降低到2.6.1版本
使用cxf3.0以上版本,请加入以下jar包
cxf-rt-rs-service-description.jar
maven:
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-rs-service-description</artifactId>
<version>${cxf.version}</version>
</dependency>
加入后就可以访问到wadl