Spring / Spring CredHub Interview questions
What is the purpose of the spring-credhub-starter dependency?
The spring-credhub-starter dependency is what turns Spring CredHub from a plain Java library into something that auto-configures itself inside a Spring Boot application.
Once it's on the classpath, Spring Boot reads properties under the spring.credhub prefix — mainly the server URL, and optionally OAuth2 client details — and builds a ready-to-inject CredHubOperations bean, choosing mutual TLS or OAuth2 authentication based on which properties are present.
Without the starter, a developer would have to manually construct a CredHubTemplate, wire up a RestTemplate, and manage authentication themselves, which is exactly the boilerplate the starter removes.
More Related questions...