不一样啊,spring的配置文件是通过xmlBeanFactory读取的。

解决方案 »

  1.   

    Spring怎么会跑到struts-config.xml中去加载Spring作为应用框架, 作为粘合剂, 整合其它的开源框架以及很多其它的企业级服务
      

  2.   

    Spring怎么会跑到struts-config.xml中去加载,呵呵!
      

  3.   

    我觉得如果xml里面有spring需要的结构 还是可以加载的 文件名而已,关键是结构eg:<beans>*******</beans>
      

  4.   

    呵呵,是我没问清楚,我是问在struts-config.xml里面
      <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
        <set-property property="contextConfigLocation" value="/WEB-INF/applicationContext.xml" />
      </plug-in>
    这个插件和在web.xml里面用 
     <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>/WEB-INF/applicationContext.xml</param-value>
      </context-param>
    有什么区别,