我遇到了 Struts2 应用程序无法识别我的package.properties
. 我不知道为什么。global.properties
但它在指定struts.custom.i18n.resources=global
后识别struts.properties
。我正在使用 struts 约定来避免struts.xml
配置。我的应用程序包结构如下:
src/main/java
com.mysweethome
admincustomer
actions
privatecustomer
actions
src/main/resources
com.mysweethome
admincustomer
package.properties
privatecustomer
package.properties
<s:text name="userLogin"></s:text>