Spring encounters several types of application contexts most often

1. AnnotationConfigApplicationContext: Loads the Spring application context from one or more java-based configuration classes

2. AnnotationConfigWebApplicationContext: Loads the Spring Web application context from one or more java-based configuration classes

3. ClassPathXmlApplicationContext: Load the context definition from one or more XML configuration files under the path, and use the application context definition file as a class resource

4. FileSystemXmlApplicationContext: Loads context definitions from one or more XML configuration files under the file system

5. XmlWebApplicationContext: Load context definitions from one or more XML configuration files under the web application

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326036864&siteId=291194637