抢占先机
VMware 提供培训和认证,以加速您的进步。
了解更多Spring 4.0 RC2 已经发布,现在可以从 SpringSource 仓库获取。
这将是 GA 之前的最终候选版本,请尝试使用它,如果您发现任何问题,请告诉我们。
如果您是 Maven 用户,您可能会对我们在此版本中发布的新 "bill of materials" POM 感兴趣。 您可以在依赖管理部分导入 spring-framework-bom
项目,以确保您获得一致的 Spring Framework 依赖项。 当您使用可能具有对 Spring 早期版本的传递依赖的其他项目时,这尤其有用。
要使用 BOM,请将以下内容添加到您的 <dependencyManagement>
部分
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-framework-bom</artifactId>
<version>4.0.0.RC2</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
然后,您可以简单地声明您通常的 Spring Framework 依赖项,而无需指定 <version>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</dependency>
Spring 4.0 GA 计划于 12 月 12 日发布,所以这确实是您提供反馈的最后机会!