Spring's core API

Spring's core API

  as follows:

  

  BeanFactroy: This is a factory for the production of any bean. Take the lazy loading, Bean will initialize the first time getBean.

  ApplicationContext: BeanFactory is sub-interfaces, and more powerful. (International process, event delivery, automatic assembly Bean, Context various application-layer). When the configuration file is loaded, the operation proceeds to instantiate.

  ClassPathApplicationContext: for loading the classPath (classpath, src) specified in the xml file. Load xml running position. -----> / WEB-INF / CLASSES / .... XML    

  FileSystemXmlApplicationContext: xml file for loading the letter is specified, java web ServletContext.getRealPath () to get the specific letter

   ------ API as a whole to understand, then do not use, re-learning process requires .-------

  The above information comes from the video learning -

  Three-shift lights just before dawn chicken, is the man reading time.

  Black hair do not know Diligence early, white-haired square regret later reading.

 

Guess you like

Origin www.cnblogs.com/268lwc/p/11545120.html