Spring related configuration resolution instantiated in web container
This article mainly explores the configuration related to instantiating spring in the web container, and briefly introduces it. Next, let's take a look at the specific content.
Description of spring instantiation configuration in web container:
To load the spring container when the web container is instantiated, web The configuration in the XML file is as follows:
explain:
By default, the spring instantiation loads the ApplicationContext under / WEB-INF / xml
If the configuration file has multiple configurations, see the following:
Or (separated by spaces, configured as follows:)
summary
The above is all about the configuration resolution related to instantiating spring in the web container. I hope it will be helpful to you. Interested friends can continue to refer to this website:
Detailed explanation of spring bean instantiation method code
Spring instance factory method and static factory method instance code
On the difference between spring singleton bean and singleton mode