Spring / Spring CredHub Interview questions
How do you add Spring CredHub to a Maven project?
Add the starter artifact to the <dependencies> section of the POM, using a version that matches your Spring Boot version:
<dependency> <groupId>org.springframework.credhub</groupId> <artifactId>spring-credhub-starter</artifactId> <version>3.4.0</version> </dependency>
That single dependency pulls in spring-credhub-core transitively. If the application needs OAuth2 authentication instead of mutual TLS, also add spring-security-config and spring-security-oauth2-client; if it needs a reactive client, add spring-boot-starter-webflux.
From there, configuring spring.credhub.url (and OAuth2 properties, if used) in application.yml is enough for auto-configuration to produce a working CredHubOperations bean.
More Related questions...