在出现
ApplicationContext context = new ClassPathXmlApplicationContext(“applicationContext.xml”);
context.getBean("");
当不提示出现这个getBean() 时,更换此时的maven依赖;
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>5.3.4</version>
</dependency>