- 隐藏所有
在CXFServlet(web.xml)处设定hide-service-list-page
<servlet>
<servlet-name>CXFServlet</servlet-name>
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
<init-param>
<param-name>hide-service-list-page</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
- 隐藏指定服务下接口
在server>properties进行设置
<jaxrs:server>
<jaxrs:properties>
<entry key="org.apache.cxf.endpoint.private" value="true"/>
</jaxrs:properties>
</jaxrs:server>