How to integrate an old Struts application with Spring 3.x
问题 i was wondering how to and what the prefered way of integrating an Struts 1.x application with Spring 3.x so we can benefit from the IOC stuff. 回答1: Use ContextLoaderPlugin and set the struts controller to the processorClass "AutowiringRequestProcessor" like this (in struts-config.xml): <controller> <set-property property="processorClass" value="org.springframework.web.struts.AutowiringRequestProcessor" /> </controller> <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">