struts2---The content of element type "package" must match "(result-types?,interceptors?,default-int
来源:互联网 发布:jsp引入js 编辑:程序博客网 时间:2024/06/09 06:48
在struts.xml中配置了拦截器之后报错了,错误为:
The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-ref?,default-action-ref?,default-class-ref?,global-results?,global-exception-mappings?,action*)".,
我是因为把自定义拦截器写在了action前面导致出错,原来是package里元素必须按照一定的顺序排列:
result-types
interceptors
default-interceptor-ref
default-action-ref
default-class-ref
global-results
global-exception-mappings
action*(就是所有的action放到最后)
阅读全文
0 0
- struts2---The content of element type "package" must match "(result-types?,interceptors?,default-int
- struts2---The content of element type "package" must match "(result-types?,interceptors?,default-int
- struts2---The content of element type "package" must match "(result-types?,interceptors?,default-int
- struts2---The content of element type "package" must match "(result-types?,interceptors?,default-int
- 如果出现The content of element type "package" must match "(result-types?,interceptors?,default-interce
- “The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-
- The content of element type "package" must match "(result-types?,interceptors?,default-intercept
- The content of element type "package" must match "(result-types?,interceptors?,default-intercept .
- The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-r
- The content of element type "package" must match "(result-types?,interceptors?,default-intercept .
- The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-r
- The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-r
- 错误:“The content of element type "package" must match "(result-types?,interceptors?,default-intercept
- The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-r
- The content of element type "package" must match "(result-types?,interceptors?,default-intercept .
- The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-r
- 报错:“The content of element type "package" must match "(result-types?,interceptors?,default-intercept
- struts2 问题 The content of element type "package" must match "(result-types?,interceptors?,
- 原生JS添加Class/删除Class/判断Class
- docker---常用命令
- 使用SFTP、xShell部署项目
- springmvc核心之HandlerMethodReturnValueHandler
- C#面向对象——继承
- struts2---The content of element type "package" must match "(result-types?,interceptors?,default-int
- 在win7环境下安装centos遇到的问题
- HashMap
- spring mvc中controller怎么接受页面表单提交的数据
- 学习日志2015.12.15
- 人工智能学习笔记--专业词汇
- 又有程序员跳楼了 我们是有多累?
- win10企业版激活
- 教主的魔法 bzoj3343 分块