一个applicationcontext就是一个抽屉,包含着一次加载的各种类,对象
vm可以有很多抽屉

解决方案 »

  1.   

    You can go to roseindia.com
    and then select struts tutorial
    and then select Login authenization and then choose spring section in the tutorial.
    You will find that the spring application context usage in struts + hiberate (Spring Context - Writing Application Context) .
      

  2.   

    呃,或则,你可以这样理解他:ApplicationContext ctx=new
    FileSystemXmlApplicationContext("bean.xml");
    LoginAction action = (LoginAction)ctx.getBean("action");
    action.login("Erica","mypass");如上,applicationContext就像一个父亲,而bean.xml就像是一个他工作的环境,子女呢,就是每个action,父亲只有去工作了,才能养活孩子撒。呵呵……就是这样呀。还有,不要那么把这些东西当成死的,刻意的去了解他。要把他们也当成是有生命的东西明白不?
      

  3.   

    也就是bean的配置文件而已,框架好根据配置文件产生bean的实例。
      

  4.   

    ApplicationContext - (Web)应用程序上下文(环境)。描述或代表整个 Web 应用程序,可以通过它访问整个应用程序的配置信息(web.xml 中的),可以把要在整个应用程序里共享的东西放到这里,...