struts2 異常頁面亂碼問題

在 struts.xml 或者 struts.properties 文件裏添加 code

<constant name="struts.locale" value="zh_CN"/>
<constant name="struts.devMode" value="true"/>

異常頁面的中文就能正常顯示了xml

相關文章
相關標籤/搜索