搶先一步
VMware 提供培訓和認證,以加速您的進度。
瞭解更多我很榮幸地宣布 Spring Boot 1.4.1
和 1.3.8
已經發佈,現在可以從 repo.spring.io 和 Maven Central 取得。
Spring Boot 1.3.8 包含了 35 個修正以及一些改進和相依性升級。 1.4 系列的第一個維護版本包含 超過 150 個修正、改進和第三方相依性更新! 感謝所有貢獻者!
我們偷偷加入了幾個主要的改進,例如針對 NoSuchBeanDefinitionException
的新 FailureAnalyzer
。 如果您的程式碼預期會有 Bean (通常透過自動設定),如果沒有,您現在應該會收到一個友善的錯誤訊息
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of constructor in com.example.JdbcStore required a bean of type 'org.springframework.jdbc.core.JdbcTemplate' that could not be found.
- Bean method 'jdbcTemplate' not loaded because @ConditionalOnSingleCandidate (types: javax.sql.DataSource; SearchStrategy: all) did not find any beans
Action:
Consider revisiting the conditions above or defining a bean of type 'org.springframework.jdbc.core.JdbcTemplate' in your configuration.
根據您的回饋,我們也改進了 1.4 中引入的新的測試支援。 變更包含
@MockBean
和 @Qualifier
現在可以一起使用。TestRestTemplate
現在使用您的 server.*
屬性來自動使用 SSL 或設定的 Context Path。@MockBean
現在可用於 Mock 具有參數化類型的 Bean。團隊現在正致力於下兩個版本。
1.5 將會有較短的發布週期,並且預計在今年底發布。 它主要會處理無法及時處理到 1.4 的 PR,並包含一些較小的相依性升級。
2.0 將整合 Spring Framework 5 並為新的反應式基礎架構提供自動設定。 請注意,與 Spring Framework 5 一樣,Spring Boot 2.0 將需要 Java 8。
如果您有興趣提供協助,請查看 Issue 儲存庫中的 "適合貢獻" 標籤。 如果您有一般問題,請在 stackoverflow.com 使用 spring-boot
標籤提問。