struts.properties 是可以不要的!!!

因为  struts.xml文件中 有 <constant> 这个节点, 你可以把你想写在struts.properties的自定义配置写在 struts.xml文件当中.

 

struts2的struts.properties配置文件详解

struts.action.extension

          The URL extension to use to determine if the request is meant for a Struts action 

           用URL扩展名来确定是否这个请求是被用作Struts action,其实也就是设置 action的后缀,例如login.do的'do'字。

struts.configuration

          The org.apache.struts2.config.Configuration implementation class

            org.apache.struts2.config.Configuration接口名

 

struts.configuration.files

          A list of configuration files automatically loaded by Struts 

           struts自动加载的一个配置文件列表

 

struts.configuration.xml.reload

          Whether to reload the XML configuration or not

           是否加载xml配置(true,false)

 

struts.continuations.package

           The package containing actions that use Rife continuations

           含有actions的完整连续的package名称

 

struts.custom.i18n.resources

          Location of additional localization properties files to load 

           加载附加的国际化属性文件(不包含.properties后缀)

相关文章:

  • 2021-12-09
  • 2022-12-23
  • 2021-10-28
  • 2021-09-27
  • 2021-10-04
  • 2022-12-23
  • 2021-09-06
  • 2021-07-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-01
  • 2021-12-16
  • 2021-09-10
相关资源
相似解决方案