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