05. struts2中爲Action屬性注入值

概述 struts2爲Action中的屬性提供了依賴注入功能 在struts2的配置文件中,咱們能夠很方便地爲Action中的屬性注入值。注意:屬性必須提供get,set方法。 配置 <action name="helloworld" class="com.liuyong666.action.HelloWorldAction"> <param name="savePath">/resour
相關文章
相關標籤/搜索