【问题标题】:Azure KeyVault Service IssueAzure KeyVault 服务问题
【发布时间】:2021-02-11 14:24:32
【问题描述】:

目前,我在 SpringBoot 版本 2.3.0.RELEASE 上运行的应用程序之一中使用 Azure keyvault 服务 使用 SAP Cloud SDK 版本 3.35.0,它不适用于 bootstrap.yml 中的以下配置。这是获取配置服务器凭据所必需的

azure:
  keyvault:
    enabled: true
    uri: 
    client-id: 
    client-key: 
    tenant-id: 
spring:
  cloud:
    config:
      uri: https://test:${config-server-creds}@xxx.com

使用 pom.xml

<dependency>
    <groupId>com.microsoft.azure</groupId>
    <artifactId>azure-keyvault-secrets-spring-boot-starter</artifactId>
    <version>2.3.3</version>
    <scope>runtime</scope>
</dependency>

  

应用程序启动时,控制台中不会打印任何日志。对这个问题有任何想法吗?是否有任何 Sprintboot 版本问题。

【问题讨论】:

    标签: azure spring-boot sap-cloud-sdk


    【解决方案1】:

    请添加 POM 文件以轻松评估问题。

    我检查了com.microsoft.azure:azure-keyvault-secrets-spring-boot-starter:2.3.3,发现它引用了org.springframework.boot:spring-boot-starter:2.3.2.RELEASE,而org.springframework.boot:spring-boot-starter:2.3.5.RELEASE 应该是这样的。

    为了建立版本兼容性,我建议使用com.azure.spring:azure-spring-boot-starter-keyvault-secrets:3.1.0

    【讨论】:

      猜你喜欢
      • 2023-04-11
      • 2020-08-28
      • 1970-01-01
      • 2023-02-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-01-31
      • 2022-01-22
      相关资源
      最近更新 更多