struts-config.xml中<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation" value="/WEB-INF/classes/applicationContext.xml" />
</plug-in>
这个插件加了有什么用?一般什么情况下要加?
<set-property property="contextConfigLocation" value="/WEB-INF/classes/applicationContext.xml" />
</plug-in>
这个插件加了有什么用?一般什么情况下要加?
这个plug-in 和 web.xml 中加载的spring配置,等于加载2次?
同意上述公约者·申请加入!
QQ群号:25922618(一群)-----人员快满
加载到struts里?
struts什么情况下要用到spring的数据?action中?
它的功能就是在struts的action中引入srping的applicationContent.xml中的配置
在 action 中getBean("xx")? 用什么方法去 getBean("xx") ?
applicationContent.xml可可以改为其他的.xml空文件 只要包含spring的DTD就可以了