Prompt Engineering Techniques with Spring AI
This blog post demonstrates practical implementations of Prompt Engineering techniques using Spring AI.

The examples and patterns in this article are based on the comprehensive Prompt Engineering Guide that covers the theory, principles, and patterns of effective prompt engineering.
The blog shows how to translate those concepts into working Java code using Spring AI's fluent ChatClient API.
For convenience, the examples are structured to follow the same patterns and techniques outlined in the original guide.
The demo source code used in this article is available at: https://github.com/spring…
A Bootiful Podcast: Wiremock's leaders Lee Turner and Tom Akehurst
Hi, Spring fans! In this installment we talk to Wiremock's leaders Lee Turner and Tom Akehurst
Using Spring AI 1.0.0 M7 Released
We are excited to announce the release of Spring AI 1.0.0 Milestone 7. This will be the last milestone release. Next month will be the RC1 release followed quickly by a GA release in time for the Spring IO conference in Barcelona.
To celebrate this release, we have added a new song to our AI-generated music playlist featuring lyrics by Josh Long and Claude! Check out the latest track to enhance your blog reading and coding experience.
Here are the key changes in this release. Note, there are breaking changes!
Breaking Changes
Spring AI 1.0.0-M7 introduces several important changes that align…
Spring AI with Docker Model Runner
This blog post is authored by Eddú Meléndez.
Docker recently released a Model Runner in Docker Desktop for Mac 4.40.0 on Apple silicon. The Docker Model Runner provides a local Inference API designed to be compatible with the OpenAI API, enabling easy integration with Spring AI as part of the Spring AI 1.0.0-M7 release. Models are distributed as standard OCI artifacts on Docker Hub under the ai namespace.
Prerequisites
-
Download Docker Desktop for Mac 4.40.0.
-
Choose one of the following options to enable the Model Runner:
Option 1:
-
Enable Model Runner `docker desktop enable model-runner --tcp 12434`.
-
Set the base-url to `http://localhost:12434/engines\`
Option 2:
-
Enable Model Runner `docker desktop enable model-runner`.
-
Use Testcontainers and set the base-url as follows:
…
Spring Cloud 2025.0.0-M3 (aka Northfields) has been released
On behalf of the community, I am pleased to announce that the Milestone 3 (M3) of the Spring Cloud 2025.0.0 Release Train is available today. The release can be found in Spring Milestone repository. You can check out the 2025.0.0 release notes for more information.
Notable Changes in the 2025.0.0 Release Train
A complete list of all changes in this release can be found in this project on GitHub.
The release is based off of Spring Boot 3.5.0-M3.
Spring Cloud Stream
- Add ability to define bindings dynamically with
BindingsLifecycleController
- Add ability to modify existing binidngs with
BindingsLifecycleController
- Fix SpEL Expresion serialization for Actuator …
This Week in Spring - April 8th, 2025
Hi, Spring fans! How are ya? I'm doing fine. Excited, even. You see, Spring AI M7 is coming soon! In theory, it drops on Thursday. Don't hold us to that — these things can change :-) But soon, and it's turning out to be a whopper of a release!
You should try upgrading your application to the new M7 by using the -SNAPSHOT
builds. The coordinates for the various starters have been reworked, so things will break there. Don't panic — you just need to update the coordinates. There's good information in the documentation.
Here's the gist:
- Model starters:
spring-ai-{model}-spring-boot-starter
→spring-ai-starter-model-{model}
- Vector Store starters:
spring-ai-{store}-store-spring-boot-starter
→spring-ai-starter-vector-store-{store}
- MCP starters:
spring-ai-mcp-{type}-spring-boot-starter
→spring-ai-starter-mcp-{type}
…
Spring Cloud Config 3.1.10, 4.0.10, 4.1.6, 4.2.1, 4.3.0-M3 Released, including fixes for CVE-2025-22232
On behalf of the team and everyone who has contributed, I am pleased to announce that the Spring Cloud Config 3.1.10, 4.0.10, 4.1.6, 4.2.1, 4.3.0-M3 are available now which fix CVE-2025-22232.
Spring Cloud Config 4.0.10 is a commercial only release and is not available in Maven Central.
Please refer to the releases page for more detail on what is included in each release.
Spring gRPC 0.6.0 available now
On behalf of the team and everyone who has contributed, I'm happy to announce that Spring gRPC 0.6.0
has been released and is now available from Maven Central.
The main change in this release was to rename the annotation for creating gRPC client beans to @ImportGrpcClients
, harmonizing with the work on HTTP interface clients in Spring Framework. This release includes features, bug fixes, documentation improvements, and dependency upgrades. Thanks to all those who have contributed with issue reports and pull requests.
How can you help?
If you're interested in helping out, check out the open issues.
If you have general questions, please ask on Stack Overflow using the spring-grpc
tag…
A Bootiful Podcast: AWS Developer Advocate and industry legend James Ward
Hi, Spring fans! In this installment I talk to AWS Developer Advocate and industry legend James Ward about AWS Bedrock, Amazon Cohere, Spring AI, MCP, and so much more!