Skip to content

[BUG] Need manually register the AzureGlobalProperties bean when using Spring Native #43924

Open
@Netyyyy

Description

@Netyyyy

Describe the bug
When using Spring native with Spring Cloud Azure, need manually register the AzureGlobalProperties bean. See No.4 in #43563 (comment)

Exception or Stack Trace
Fail to start if not register a AzureGlobalProperties bean

To Reproduce
Steps to reproduce the behavior:

  1. clone https://github.com/Netyyyy/azure-key-vault-native
  2. remove AzureGlobalProperties bean
  3. Build the project to native using: ./gradlew clean nativeCompile
  4. Run the built application ./build/native/nativeCompile/azure-key-vault-native

Expected behavior
Not to register AzureGlobalProperties bean

If you suspect a dependency version mismatch (e.g. you see NoClassDefFoundError, NoSuchMethodError or similar), please check out Troubleshoot dependency version conflict article first. If it doesn't provide solution for the problem, please provide:

  • verbose dependency tree (mvn dependency:tree -Dverbose)
  • exception message, full stack trace, and any available logs

Additional context
Add any other context about the problem here.

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Bug Description Added
  • Repro Steps Added
  • Setup information Added

Metadata

Metadata

Assignees

No one assigned

    Labels

    azure-springAll azure-spring related issues

    Type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions