第一步,新建一个maven项目
第二步,导包往pom.xml配置文件中元素中黏贴以下maven
<!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc -->
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>5.3.19</version>
</dependency>
</dependencies>
文本是上mvnrepository找的,有超链接地址。黏贴的时候要拿元素套一下。
直接复制。
第三部,执行maven
等待片刻完成