I have a spring-boot application that uses vault to keep its secrets. The connection to vault is by a dedicated class with the @VaultPropertySource annotation. The connectivity configuration is in bootstrap.yaml file. I need the connection only on application startup to read all the secrets, but I see that spring keeps checking the connectivity all over the application life, so if I shut down the vault, my application is crashed because a connectivity lost. So my question is, how can I configure spring to not keep the connectivity after the application startup.
Note: I know the fail-fast configuration, but this is very general configuration. I want that my application will fail if there is no connection on startup to read the secrets, but I don't want to be depend on vault all over the application life.