cxf隐藏service列表
来源:互联网 发布:诺曼底公爵 知乎 编辑:程序博客网 时间:2024/05/17 17:55
如果使用tomcat虚拟目录,去掉项目名称,可以在http://IP:8090/后添加services查看列表,为了隐藏服务列表,需要在
在web.xml中设置
<servlet>
<servlet-name>CXFService</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>
</servlet>
<servlet-mapping>
<servlet-name>CXFService</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
这样应用启动后就不会显示服务列表。
其它参数还有
<prop key="org.apache.cxf.servlet.context">/cxf</prop>
<prop key="org.apache.cxf.servlet.name">cxf-osgi-transport-servlet</prop>
<prop key="org.apache.cxf.servlet.hide-service-list-page">false</prop>
<prop key="org.apache.cxf.servlet.disable-address-updates">false</prop>
<prop key="org.apache.cxf.servlet.base-address"></prop>
<prop key="org.apache.cxf.servlet.service-list-path"></prop>
<prop key="org.apache.cxf.servlet.static-resources-list"></prop>
<prop key="org.apache.cxf.servlet.redirects-list"></prop>
<prop key="org.apache.cxf.servlet.redirect-servlet-name"></prop>
<prop key="org.apache.cxf.servlet.redirect-servlet-path"></prop>
- cxf隐藏service列表
- 更改或隐藏org.apache.cxf.transport.servlet.CXFServlet的rest或soap服务列表
- web service cxf demo
- CXF 发布 Web Service
- CXF Web Service Tutorial
- CXF调用web service
- Java Web Service-CXF
- Cxf Web Service
- cxf-spring-pratice-service
- cxf+web service(四)cxf+spring集成
- 实战Web Service with CXF
- CXF 发布Web Service - JaxWsWebServicePublisherBeanPostProcessor
- CXF学习-开篇HelloWorld SERVICE
- 使用cxf发布Web Service
- cxf+web service(三)HelloWorld
- 使用CXF创建WEB SERVICE
- CXF Web Service简单应用
- cxf web service简单配置
- Boost智能指针shared_ptr、weak_ptr
- java中volatile关键字的含义
- 正则表达式实现(Linux C语言版本)
- 触摸事件(touchstart、touchmove和touchend)
- ExecutorService的十个使用技巧
- cxf隐藏service列表
- Leetcode 231. Power of Two (Easy) (cpp)
- 手机APP开发之车牌识别SDK移植
- 邮件批处理(业务流程分析)
- 获取Executor提交的并发执行的任务返回结果的两种方式/ExecutorCompletionService使用
- 图片压缩工具
- 正确运用synchronized和二次判断 实现多线程安全
- Android基础知识---EditView属性名称及描述
- 关于Linux内核学习