我正在寻找适用于Java 8的Spring 4.0 M1版本。根据 这个 问题,应该有一个构建版本可用,但我却找不到。理想情况下,应该有一个Maven仓库,但我甚至找不到一个普通的下载链接?
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>4.0.0.RELEASE</version>
</dependency>
Spring 4
已经在Maven中央仓库中了,所以您只需要添加此依赖项。<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>4.0.0.RELEASE</version>
</dependency>
旧回答
我认为您需要在 pom.xml
中添加Spring仓库。
<repository>
<id>com.springsource.repository.maven.snapshot</id>
<url>http://maven.springframework.org/snapshot/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
你可以使用以下版本的Spring模块 4.0.0.BUILD-SNAPSHOT
。例如:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>4.0.0.BUILD-SNAPSHOT</version>
</dependency>
当我查看Spring Framework的摘要页面时,它表明4.0 M1尚未发布 - 计划于2013年5月14日星期二发布。