我正在使用 Apache CXF 框架,在其中我在 cxf-servlet.xml 中指定了 Restful 和 Soap Web 服务,在部署项目并通过 url 请求服务列表为 htt://SystemIP:8080/之后WebServicesExample/services/出现服务列表,其中有SOAP和REST服务,有没有办法隐藏列表中列出的REST服务?
最佳答案
我自己做的... 简单的就是给
加上一个属性标签 <jaxrs:properties>
<entry key="org.apache.cxf.endpoint.private" value="true"/>
</jaxrs:properties>
这也适用于 JAX-WS 服务..这必须添加到 cxf-servlet.xml 文件中
关于java - 从 Web 服务列表中隐藏 Restful 服务(Apache CXF),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12619171/