如何在struts2应用程序中访问war文件之外的应用程序资源文件

如何在struts2应用程序中访问war文件之外的应用程序资源文件,struts2,web,struts,Struts2,Web,Struts,目前我正在做一个项目,所以我需要访问应用程序资源文件 在我的战争档案之外 因此,我希望应用程序资源文件可以保存在系统中的任何位置,并且我可以访问它。资源包按以下顺序搜索: ActionClass.properties Interface.properties BaseClass.properties ModelDriven’s model package.properties Search up the i18n message key hierarchy itself Global resou

目前我正在做一个项目,所以我需要访问应用程序资源文件 在我的战争档案之外


因此,我希望应用程序资源文件可以保存在系统中的任何位置,并且我可以访问它。

资源包按以下顺序搜索:

ActionClass.properties
Interface.properties
BaseClass.properties
ModelDriven’s model
package.properties
Search up the i18n message key hierarchy itself
Global resource properties

转到下面的链接,它显示了加载语言资源包的方法。

Struts 2对此无能为力,它将按以下顺序查找资源包。我可以将其保留在war文件之外吗??