struts2的全局配置和手動配置需要引入的包
struts2的全局配置
struts2的全局配置文件其實在struts2-core-x.x.jar包中的
org.apache.struts2 package中的default.properties中
我們可以通過在struts.xml中覆寫相應的屬性來設定自定義的功能
比如說
struts.action.extension=action
我們可以通過在struts.xml中覆寫struts.action.extension來自定義action的后綴名
等等。
手動配置需要引入的包
不是所有IDE都支持struts2的自動配置及部署,有時候我們需要手動讓項目具有struts2支持。
Struts2/lib目錄下很多jar包,但是大部分都用不到,如果只用struts框架,只需要引入下面幾個包(版本號略去)
commons-logging
freemarker
ognl
struts2-core
xwork
posted on 2009-01-25 17:07 bacon 閱讀(1919) 評論(1) 編輯 收藏 所屬分類: J2EE