0

我遇到了 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>
4

0 回答 0