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

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