你需要在struts。xml中加入spring.xml例子如下,当然你得把sprig配置好<plug-in
className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation"
value="/WEB-INF/conf/sysmgr/test1/test1Spring.xml" />
</plug-in>