前天刚配置好maven,于是想去使用一下maven带来的方便,用的过程中发现在Select Dependency 搜索的时候发现啥也没有
这是我本地的,试了网上的各种办法依然不能解决问题
后来搜了一个问答发现
说是这样的是不可以的,然后根据网上说的去做,大致如下:
1.去 maven 仓库去搜 http://mvnrepository.com
2.找到对应自己想要的版本之后
例如:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>3.2.8.RELEASE</version>
</dependency>
然后把这个放到你的项目的pom.xml文件里, <dependencies> </dependencies>
<dependencies>
<!-- <dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>3.1.2.RELEASE</version>
</dependency> -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>3.2.8.RELEASE</version>
</dependency>
</dependencies>
这样就可以了。