The first step is to find the information of the framework
Find relevant information through the URL https://mvnrepository.com/artifact/org.springframework/spring-context/5.3.18
This is what you copy and paste in your pom.xml file
If it is not displayed, click view all in the figure below
After completion, follow the picture below and click to wait for the relevant files to be downloaded
The second step is to create a new file in resources and configure the bean
Add beans to the file after creating the file according to the figure
class: the class to manage
id: the alias of the class, used to refer to
The third step, use
Load the configuration file to get the context, that is, get the container according to the path, and use it after getting the resource