配置Struts2的struts.properties

struts.properties文件在WEB-INF/classes目录下存放。

这个文件用来配置Struts2系统的一些基本规约,所有在struts.properties中配置的内容都可以在struts.xml中配置,或者web.xml中在struts2 filter中配置,例如:

Struts.properties中的如下配置:

struts.i18n.encoding=UTF-8

相当于struts.xml中的如下配置:

相当于web.xml中的如下配置:

  struts  org.apache.struts2.dispatcher.FilterDispatcher      struts.i18n.encoding    true  

风景如何,其实并不重要。重要的是,你在我的身边。

配置Struts2的struts.properties

相关文章:

你感兴趣的文章:

标签云: