Description
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:
- clone https://github.com/Netyyyy/azure-key-vault-native
- remove
AzureGlobalProperties
bean - Build the project to native using:
./gradlew clean nativeCompile
- 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
Type
Projects
Status