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