搶佔先機
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 日釋出,所以這確實是您提供反饋的最後機會!