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+Spring 中使用AOP攔截execute方法,出現get方法空指針異常 分享
Struts2+Spring 中使用Spring AOP攔截execute方法,出現get方法NullPointerException 異常,無法獲取
struts +ajax驗證,總提示服務器無返回數據
下面是js的驗證 <script type="text/javascript"> $(document).ready(function(){ $.formValidator.initConfig({