Set values obtained from azure key vault in spring boot

I'm working with Spring Boot 2.7.11, Java 11, SQL Server 2022, JPA Hibernate

The main issue is that I am getting the data from azure key vault but I don't know how to set it to the bootstrap.properties file. The issue is that spring boot loads the above mentioned file before it can read the values of the secrets.

For that I implemented the class MyCommandLineRunner implements CommandLineRunner that in theory is executed before it loads the bootstrap.properties file to be able to read the values of the vault and set them to the bootstrap file ....
Was this page helpful?