先行一步
VMware 提供培訓和認證,助您加速前進。
瞭解更多我們非常高興地宣佈,Spring Cloud Azure 5.0 現已正式釋出。
此主要版本包含以下功能、改進和文件更新
要試用 Spring Cloud Azure 5.0,只需向您的專案新增以下依賴項 BOM
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.azure.spring</groupId>
<artifactId>spring-cloud-azure-dependencies</artifactId>
<version>5.0.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
Spring Boot 3 和 Spring Cloud 2022.0.0 帶來了許多令人興奮的功能,需要對 Spring Cloud Azure 進行一些重大更改才能充分利用它們。
com.azure.spring.cloud.autoconfigure.aad.implementation.oauth2.AadOAuth2AuthenticatedPrincipal
class removed com.azure.spring.cloud.autoconfigure.aad.implementation.webapi.AadOboOAuth2AuthorizedClientProvider
class removed com.azure.spring.cloud.autoconfigure.aad.properties.AadAuthorizationGrantType
class removed com.azure.spring.cloud.autoconfigure.aad.AadJwtBearerTokenAuthenticationConverter
class removed AuthorizationGrantType.PASSWORD
no longer supported com.nimbusds.jwt.proc.DefaultJWTClaimsVerifier#DefaultJWTClaimsVerifier(com.nimbusds.jwt.JWTClaimsSet, java.util.Set<java.lang.String>)
method replaces com.nimbusds.jwt.proc.DefaultJWTClaimsVerifier#DefaultJWTClaimsVerifier()
AbstractHttpConfigurer
replaces org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
spring-cloud-azure-trace-sleuth
artifact removed
org.springframework.security.config.annotation.method.configuration.EnableMethodSecurity
annotation replaces org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity
org.springframework.security.oauth2.server.resource.authentication.BearerTokenAuthenticationToken
class replaces org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken
以下功能計劃在未來版本中提供
** 當前可用於 beta 測試,請訪問Spring Cloud Azure Native Reachability client library for Java進行試用。
敬請關注更新!
使用使用者名稱/密碼憑據從一個應用程式訪問另一個應用程式會顯著增加整體風險。未經授權的使用者可以使用意外提交到原始碼管理、透過不安全電子郵件傳送、貼上到錯誤聊天中或以其他非法方式獲取的連線字串訪問應用程式。將應用程式更新為使用無密碼連線可顯著提高安全性。
Spring Cloud Azure 5.0 現已正式支援 Java 應用程式與 Azure 資料庫和事件服務的無密碼連線,使您無需透過網路傳輸使用者名稱和密碼即可安全地訪問服務。
這些 Azure 服務目前支援無密碼連線
Azure 服務 | 快速入門 | 遷移指南 |
---|---|---|
適用於 MySQL 的 Azure 資料庫 | Spring Data JDBC, Spring Data JPA | 刪除密碼並遷移 |
適用於 PostgreSQL 的 Azure 資料庫 | Spring Data JDBC, Spring Data JPA | 刪除密碼並遷移 |
Azure SQL 資料庫 | Spring Data JDBC, Spring Data JPA | 刪除密碼並遷移 |
事件中心 – Kafka | Spring Cloud Stream Binder for Kafka, Spring Kafka | 刪除密碼並遷移 |
儲存 | Blob 儲存, 佇列儲存 | 刪除密碼並遷移 |
我們的無密碼之旅並未在此結束。計劃並正在開發對更多 Azure 服務的支援。
Spring Initializr 中的 Azure 支援模組現已支援 Spring Boot 3,因此您可以直接從 Spring Initializr 開始您的 Spring Cloud Azure 5.0 之旅。
良好的文件是 Spring Cloud Azure 的一個重要組成部分。我們建立了一個新的線上資源,面向 Spring 開發人員的 Azure,以幫助 Spring 開發人員在 Azure 上編寫、部署和擴充套件他們的 Spring 應用程式。無論開發人員是熟悉 Spring 但不熟悉 Azure 服務,還是反過來——或者對兩者都陌生!——他們都可以訪問此站點進行學習。內容將不斷擴充套件和更新。
此外,我們重新設計了Spring Cloud Azure文件,結合有用的場景,幫助開發人員更輕鬆地找到所需資訊。
spring.cloud.azure.servicebus.processor.auto-startup
支援自動啟動自動配置的 Service Bus Processor 客戶端 #29997spring.cloud.azure.eventhubs.kafka.enabled
以啟用/停用 Spring Cloud Azure 對 Event Hubs for Kafka 的 OAuth2 支援 #30574RestTemplateCustomizer
bean)#26493spring.jms.servicebus.username
,spring.jms.servicebus.password
, spring.jms.servicebus.remote-uri
JacksonHttpSessionOAuth2AuthorizedClientRepository.getAuthorizedClients
現在返回一個不可修改的 Map
#31190RestTemplate
現在只包含兩個必需的轉換器 #31482jwkResolver
為 null
時,RestOperations
現在已正確配置 #31218scope
引數問題 #31191NimbusJwtDecoder
以使用 RestTemplateBuilder
而非 RestTemplate
#31233JSONArray
的 NoClassDefFoundError
問題 #31716spring.main.sources
配置的問題 #31715歡迎隨時提供反饋和貢獻。請透過 StackOverflow 或 GitHub 聯絡我們。
要了解更多關於 Spring Cloud Azure 的資訊,請訪問以下連結