Spring Boot 4.2 and Spring AI 2.1

What Spring Boot 4.2.0-RC1 and Spring AI 2.1.0-RC1 add: AMQP 1.0, RestClient, Buildpacks, OTLP, message parts, session memory, tool confirmation, and search by query vector.

AMQP 1.0
AMQP 1.0 is a new path. AMQP 0.9 stays, on a renamed starter.
Message parts
Ordered parts are native on OpenAI, Anthropic, Gemini, Bedrock, Ollama, Mistral, and DeepSeek.
RestClient
RestTemplate support is deprecated, following Spring Framework 7.1.
Session memory
A session is an append-only event log. The prompt sees a view of that log.
Build cache
Buildpacks can keep the build cache in a container registry.
Tool confirmation
A tool can pause for a person before it books, deletes, or sends.
One OTLP
One OTLP endpoint, headers, and compression setting can feed traces, logs, and metrics.
Query vectors
Upsert stores embeddings you computed. Search can take the query vector itself.