• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
山高我为峰
博客园    首页    新随笔    联系   管理    订阅  订阅
struts2整合axis2后,访问不到wsdl,被struts2拦截的解决办法

在struts2中整合axis2后,访问wsdl的时候显示404  not found
There is no Action mapped for action name xxxxxxxx.

解决办法:
在struts.xml配置文件中加入排除过滤的地址
<constant name="struts.action.excludePattern" value="/services.*"/>
value中的“.”符号是必须的,如过滤地址为  “/services/*”   value必须配置为 "/services.*"

如:url-pattern配置为"/Servlet/download",那么value必须配置为“/Servlet/download.*”

不然,还是会被拦截到的

posted on 2015-09-21 22:27  山高我为峰  阅读(516)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3