11 2012 档案
摘要:让spring代替struts2生成Actionstruts2中提供了一个与spring进行集成的包,位于struts2 的lib下,叫做struts2-spring-plugin.jar。复制到当前目录的WEB-INF/lib下,然后配置struts.xml和applicationContext.xml(1)在struts.xml的<action>配置中使用class属性指向Spring的<bean>元素: <action name="login" class="loginAction" > <result n
阅读全文