JAVA-20287 Update article "Spring Cloud Azure Key Vault" (#14488)

* JAVA-20287 Update article "Spring Cloud Azure Key Vault"

* Comment the spring-cloud-azure

---------

Co-authored-by: timis1 <noreplay@yahoo.com>
This commit is contained in:
timis1 2023-07-27 18:50:14 +03:00 committed by GitHub
parent aae5f7dc38
commit 4215e52c4d
5 changed files with 10 additions and 9 deletions

View File

@ -729,6 +729,7 @@
<module>spring-batch-2</module>
<module>spring-boot-rest</module>
<module>spring-drools</module>
<module>spring-cloud-modules/spring-cloud-azure</module>
<module>spring-cloud-modules/spring-cloud-contract</module>
<module>spring-cloud-modules/spring-cloud-data-flow</module>
<module>spring-cloud-modules/spring-cloud-circuit-breaker</module>
@ -1000,6 +1001,7 @@
<module>spring-batch-2</module>
<module>spring-boot-rest</module>
<module>spring-drools</module>
<module>spring-cloud-modules/spring-cloud-azure</module>
<module>spring-cloud-modules/spring-cloud-circuit-breaker</module>
<module>spring-exceptions</module>
<module>spring-jenkins-pipeline</module>

View File

@ -55,7 +55,7 @@
<!-- <module>spring-cloud-data-flow</module>-->
<module>spring-cloud-sleuth</module>
<module>spring-cloud-open-telemetry</module>
<module>spring-cloud-azure</module>
<!-- <module>spring-cloud-azure</module> migrating under jdk9 and above profile-->
<module>spring-cloud-openfeign-2</module>
</modules>
@ -99,4 +99,4 @@
<spring-cloud-stream.version>3.1.3</spring-cloud-stream.version>
</properties>
</project>
</project>

View File

@ -52,7 +52,7 @@
<properties>
<spring-cloud-dependencies.version>2021.0.3</spring-cloud-dependencies.version>
<azure-key-vault-extension-version>4.0.0</azure-key-vault-extension-version>
<azure-key-vault-extension-version>5.0.0</azure-key-vault-extension-version>
</properties>
</project>

View File

@ -11,7 +11,7 @@ import org.springframework.boot.test.context.SpringBootTest;
import com.baeldung.spring.cloud.azure.keyvault.service.KeyVaultAutoconfiguredClient;
@SpringBootTest(classes = Application.class)
public class KeyVaultAutoconfiguredClientIntegrationTest {
class KeyVaultAutoconfiguredClientIntegrationTest {
@Autowired
@Qualifier(value = "KeyVaultAutoconfiguredClient")
@ -22,5 +22,4 @@ public class KeyVaultAutoconfiguredClientIntegrationTest {
String secretKey = "mySecret";
Assertions.assertThrows(NoSuchElementException.class, () -> keyVaultAutoconfiguredClient.getSecret(secretKey));
}
}

View File

@ -12,10 +12,10 @@ spring:
endpoint: https://spring-cloud-azure.vault.azure.net/
azure:
keyvault:
vaultUrl: myVaultUrl
tenantId: myTenantId
clientId: myClientId
clientSecret: myClientSecret
vaultUrl: {$myVaultUrl}
tenantId: {$myTenantId}
clientId: {$myClientId}
clientSecret: {$myClientSecret}
database:
secret:
value: my-database-secret