1. 程式人生 > >Missing message for key "xxx" in bundle "(default bundle)" for locale zh_CN

Missing message for key "xxx" in bundle "(default bundle)" for locale zh_CN

參考文章http://programmerslounge.blogspot.com/2013/03/error-missing-message-for-key.html

 

錯誤的struts-config.xml配置:

<message-resources parameter="pkg.ApplicationResources.properties"/>

解決方法,將上述parameter屬性中的.properties字尾去掉:

<message-resources parameter="pkg.ApplicationResources"/>

經測試,包名去掉後也會異常。(不知道為什麼參考文章中去掉包名仍可執行)