一、pom.xml
<dependency><groupId>org.apache.struts</groupId><artifactId>struts2-spring-plugin</artifactId><version>2.3.15.3</version></dependency>
二、struts.xml
<!-- struts.xml 使用spring工廠 --><constant name="struts.objectFactory" value="spring" />
struts2框架由什么組成,?
org.apache.struts2.spring.StrutsSpringObjectFactory
?
struts,action 應該托管給spring