Skip to main content
The starter is configured via Spring Boot properties under the nexus.* prefix.

Field reference

The starter accepts the standard Spring Boot duration suffixes - s, ms, m, h. ttl: 60s and ttl: PT60S are equivalent.

Stream observer bean

(v0.2.0) The auto-configuration also picks up any NexusStreamObserver bean automatically - see Stream observer for the bean wiring pattern.

WIFConfig bean

(v0.2.0) For custom token sources or test fixtures, define a WIFConfig bean - the auto-configuration uses it in preference to the nexus.wif.* properties. See Workload identity.

API key types

Calling getSecret(...) with a public key throws NexusPublicKeyException synchronously, before the network call.

Where to keep the API key

Anywhere Spring Boot’s IConfiguration already reads - environment variables, AWS Secrets Manager, HashiCorp Vault, your existing pipeline:
Combined with profile-based config:
The SDK never logs the raw key. Log lines reference key type only:

Choosing the TTL

The TTL is a tradeoff between staleness window and redundant network traffic. With SSE enabled (default), changes propagate in milliseconds regardless of the TTL - the TTL only matters as a safety net when the stream falls back.

Disabling SSE

Useful in environments where outbound long-lived connections are blocked (some serverless platforms, certain corporate proxies).

Customizing via NexusConfig.Builder

If you need to override more than the four properties (for example, inject a custom HttpClient for a corporate proxy), register a NexusClient bean of your own - the auto-configuration will back off:
The @ConditionalOnMissingBean on the auto-configuration ensures the starter doesn’t try to create its own bean when yours is present.