Allow app startup when NATS is unavailable

Fixkamo-shared-library
Shipped
March 10, 2026 at 10:14 PM UTC
Author
Kamo
Commit
10cd6b5

Remove @ConditionalOnBean from jetStream() and add @Nullable to the Connection parameter. When natsConnection() returns null (NATS unreachable), Spring no longer crashes with UnsatisfiedDependencyException.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing