Struts2.5 提示:ERROR ParametersInterceptor Developer Notification 原因解释

来源:互联网 发布:手机装软件 编辑:程序博客网 时间:2024/05/29 02:01

Struts2 开发模式报错如下:

ERROR ParametersInterceptor Developer Notification (set struts.devMode to false to disable this message):Unexpected Exception caught setting 'limit' on 'class org.dcc.action.MtAction: Error setting expression 'limit' with value ['10', ]ERROR ParametersInterceptor Developer Notification (set struts.devMode to false to disable this message):Unexpected Exception caught setting 'offset' on 'class org.dcc.action.MtAction: Error setting expression 'offset' with value ['0', ]ERROR ParametersInterceptor Developer Notification (set struts.devMode to false to disable this message):Unexpected Exception caught setting 'order' on 'class org.dcc.action.MtAction: Error setting expression 'order' with value ['asc', ]

解释:
当struts.devMode设置为true时,html表单数据中有和action属性匹配不上的参数名时就会被这样显示出来,没什么大碍,就是为了便于使用者调试。struts.devMode设置为false就没有了。

我也是找了半天原因,才看到这句话,其实人家早就指出解决方法了,set struts.devMode to false to disable this message

1 0
原创粉丝点击