如果你是需要解决如下图所示的Spring Config XML文件没有的问题,请继续看下去
第一步,pom.xml添加依赖:
<!--导入Spring坐标-->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>5.2.10.RELEASE</version>
</dependency>
第二步:刷新maven,重新创建
第三步:如果前两步没有,看看有没有spring插件
第四步:如果还是没有手动创建吧
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
https://www.springframework.org/schema/beans/spring-beans.xsd">
</beans>