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

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章