A curated list of awesome resources, tools, tutorials, and projects for building generative AI applications using Spring AI. This repository aims to help developers leverage the power of Large Language Models (LLMs) within the Spring ecosystem.
- What is Spring AI?
- Official Resources
- Learning Resources
- Code & Examples
- Community
- Tools & Performance
- Contributing
Spring AI is a project from the Spring team that provides a familiar and consistent Spring-style developer experience for building AI applications. It simplifies the integration of Large Language Models and other AI capabilities into Spring applications, offering:
- Consistent abstractions across different AI providers
- Support for popular LLM providers
- Robust prompt engineering capabilities
- Built-in caching and retry mechanisms
- Vectorized storage integration
- Streaming responses
- Customizable model parameters
- Native Spring Boot integration
- Dynamic Tool Updates in Spring AI's Model Context Protocol - How to dynamically update tools available to AI assistants using Spring AI's MCP implementation
- Spring AI Prompt Engineering Patterns - Best practices and patterns for effective prompt engineering in Spring AI applications
- Agentic AI is the future! Agentic AI is now! - Exploring agentic patterns in Spring AI for building autonomous AI systems
- Leverage the Power of 45k, free, Hugging Face Models with Spring AI and Ollama
- Supercharging Your AI Applications with Spring AI Advisors
- Spring AI with NVIDIA LLM API
- Spring AI Embraces OpenAI's Structured Outputs: Enhancing JSON Response Reliability
- Spring AI with Groq - a blazingly fast AI inference engine
- Spring AI with Ollama Tool Support
- Spring AI - Structured Output
- Spring AI - Multimodality - Orbis Sensualium Pictus
- Function Calling in Java and Spring AI using the latest Mistral AI API
- AI Meets Spring Petclinic: Implementing an AI Assistant with Spring AI (Part I)
- AI Meets Spring Petclinic: Implementing an AI Assistant with Spring AI (Part II)
- Spring Pet Klinik - Kotlin
- "Spring AI in Action" by Craig Walls (Manning)
- "Spring AI for Your Organization - GCP Vertex AI Edition" by Muthukumaran Navaneethakrishnan (Leanpub)
- "Beginning Spring AI" by Andrew Lombardi and Joseph Ottinger
- Understanding Tool/Function Calling in LLMs (Step-by-Step Examples in REST and Spring AI - Learn how to implement OpenAI-style tool calling — from raw REST to elegant Spring AI annotations (July 2025)
- Semantic search with embeddings in Spring & Kotlin - Comprehensive guide to the use of embeddings in Spring AI (April 2025)
- Spring AI in Java Applications - Vision for enterprise AI integration with Spring (March 2025)
- Configuring MCP-Client SSE using Spring AI - Technical guide for configuring Server-Sent Events with MCP clients (February 2025)
- Spring AI: A Beginner's Guide (Part 1) & Part 2 - Multi-part walkthrough of Spring AI fundamentals. Part 1 covers integrating chat models (OpenAI/Ollama) in Spring Boot; Part 2 dives into the Advisor API (December 2024)
- Why Spring AI: The Seamless Path to Generative AI - Article explaining the benefits of Spring AI and why you may consider it in favour of other AI frameworks (November 2024)
- Building a Generative AI Application with Spring AI - Project-based learning walkthrough for building a complete Spring AI application (November 2024)
- Spring Boot Meets AI - Practical guide to using OpenAI & Anthropic in a diet-planner application (October 2024)
- Getting Started with Spring AI (Java Code Geeks) - Simple introduction to Spring AI for Java developers (September 2024)
- Getting Started with Spring AI - Introduction to Spring AI's core components and model abstractions (August 2024)
- How to Write GenAI Applications with Java (Foojay.io) - Comprehensive guide covering RAG and Spring AI templates (July 2024)
- Spring AI: Beginner to Guru (Udemy) - Comprehensive course covering Spring AI fundamentals, integration with various LLM providers, prompt engineering, and building AI-powered applications
- Mastering Spring AI: Build AI with Java (Udemy) - Advanced course focused on building production-ready AI applications with Spring AI and Java
- Spring AI for Beginners: Build GenAI & LLM Apps (Udemy) - Step-by-step guide for beginners to create generative AI applications with Spring AI
- Spring AI with Neo4j: Knowledge Graph RAG (Udemy) - Specialized course on implementing Knowledge Graph RAG (Retrieval Augmented Generation) using Spring AI and Neo4j graph database
- Build AI Apps with Spring AI, OpenAI, Ollama & SpringBoot (Udemy) - Hands-on course teaching how to integrate AI capabilities into Spring Boot applications using Spring AI framework and OpenAI (August 2025)
- MCP, it's easy as ABC... -
- Bootiful Spring AI - Thanks to Devnexus for permission to represent this video- March 2025
- What's New in Spring AI M4 • Josh Long - February 2025
- Intelligent Applications with Spring AI • Patrick Baumgartner @ JFokus 2025 - February 2025
- Spring Boot and Vaadin with Spring AI MCP • Marcus Hellberg - February 2025
- Prompt Engineering with Spring AI • Josh Long on Christian Tzolov's Review - April 2025
- Spring AI Deep Dive • Mark Pollack & Josh Long @ Devnexus - April 2025
- Spring AI Course • freeCodeCamp - December 2024
- Building Agents with AWS: Complete Tutorial • Josh Long & James Ward - November 2024
- Supercharging your AI Applications with Spring AI Advisors • Spring Team - October 2024
- Spring AI Is All You Need • Christian Tzolov • GOTO Amsterdam 2024 - June 2024
- Practical GenAI with Spring AI • Rod Johnson @ YOW! 2024 - June 2024
- Introducing Spring AI by Christian Tzolov / Mark Pollack @ Spring I/O 2024 - May 2024
- Bringing GenAI to the Modern Enterprise. A production use-case. In Serverless Java !! • Dan Dobrin • Devoxx Belgium 2024 - May 2024
- Bootiful Spring Boot • Josh Long @ SpringOne 2024 - January 2024
- Bootiful Artificial Intelligence • Josh Long, Mark Pollack & Rod Johnson @ SpringOne 2024 - January 2024
- Spring AI: Seamlessly Integrating AI into Your Enterprise Java Applications - December 2023
- Overview of Spring AI @ Devoxx 2023 - November 2023
- Spring Tips: Spring AI - October 2023
- Introducing Spring AI • Add Generative AI to your Spring Applications - October 2023
- Spring AI at Spring.IO Keynotes - October 2023
- Craig Walls' Spring AI Playlist
- Dan Vega's Playlist
- Devoxx Playlist
- Telusko Spring AI Tutorial Playlist - Comprehensive tutorial series covering Spring AI implementation with OpenAI, Anthropic, and Ollama integration
- AI - Artificial Intelligence Playlist - Collection of videos covering Spring AI and general artificial intelligence concepts and implementations
- Spring AI Zero to Hero Workshop - Example applications showing how to use Spring AI to build Generative AI projects.
- (outdated) Workshop material for Azure OpenAI - contains step-by-step examples from 'hello world' to 'retrieval augmented generation'
- Gemini Workshop for Spring AI Java Developers • Dan Dobrin - workshop materials for the Java developer building Gen AI applications with Gemini models using Spring AI
- Exploring interactions with LLMs : Practical insights with Spring AI - A self-paced workshop designed to practice Spring AI basics and discover interactions with LLMs.
-
Spring AI Samples by Thomas Vitale - Extensive collection of samples showing how to build Java applications powered by Generative AI and Large Language Models (LLMs). Includes examples for different AI models, RAG implementations, and various Spring AI features.
-
Spring AI Examples by Craig Walls - Comprehensive repository with dozens of examples covering all major Spring AI capabilities, model integrations, and implementation patterns. Created by the author of "Spring AI in Action".
-
Spring AI Showcase by Piotr Minkowski - Modular demo project showcasing multiple Spring AI features including prompt templates, chat memory, structured output, function calling, RAG with Pinecone vector store, and image models. Supports multiple AI providers (OpenAI, Mistral, Ollama, Azure OpenAI) with profile-based configuration.
-
Spring PetClinic AI - The classic Spring PetClinic application enhanced with a chatbot powered by Spring AI. Demonstrates natural language interaction with application data, allowing users to query and modify pet clinic information through conversation. Supports both OpenAI and Azure OpenAI as LLM providers. Detailed in a two-part blog series on spring.io.
-
Flight Booking Assistant - Spring AI powered expert system demo that simulates a flight booking assistant. Demonstrates how to build domain-specific AI assistants using Spring AI.
-
Spring AI with QianFan - Spring AI support for various AI language models from QianFan. Shows how to interact with QianFan language models and create a multilingual conversational assistant based on QianFan models.
-
Similarity Search using Spring AI - Implementation of a simple similarity search. Demonstrating how to use Kotlin or Java with Spring-AI to generate embeddings and perform simple similarity searches (March 2025)
-
Spring AI HTMX MCP - Example of building a modern, interactive UI for Spring AI applications using HTMX. Demonstrates how to create a responsive chat interface with minimal JavaScript by leveraging HTMX's server-side rendering capabilities combined with Spring AI's Model Context Protocol.
-
Spring AI Vaadin - Integration of Spring AI with Vaadin, a Java web framework for building modern web applications. Provides components and examples for creating rich, interactive AI-powered UIs with pure Java, without requiring JavaScript or HTML knowledge.
-
DocumentGPT - A RAG-based document query system by Sergi Almar that allows users to upload documents and chat with them using Spring AI's vector search capabilities. Features a web-based user interface for document upload and interactive querying.
-
Spring AI Playground - A web UI designed to make it easy for Java developers to experiment with and integrate AI models. Provides an interactive interface for testing different prompts and models.
-
Spring AI Chat Bot CLI - Command-line chatbot with Retrieval-Augmented Generation (RAG) and conversational memory capabilities. Demonstrates how to build interactive CLI applications with Spring AI.
-
Spring AI Powered Local CLI Chat Bot - A fully local, Spring AI-powered CLI chatbot that runs entirely on your machine with no external services required. Perfect for offline development or privacy-sensitive applications.
- Spring AI Alibaba - An extension of Spring AI that provides an agentic AI framework for Java developers. Adds support for Alibaba Cloud QWen models and Dashscope services, along with additional features like conversation memory, RAG support, and function calling. Maintains compatibility with the Spring AI API while offering specialized capabilities for Alibaba Cloud's AI ecosystem.
- Arconia Ollama Dev Service - A Spring Boot development service that automatically manages Ollama instances for local LLM development. Simplifies testing and development with local models by handling container lifecycle and configuration. Integrates seamlessly with Spring AI's Ollama support.
- MCP Client Documentation - Official documentation for implementing the Model Context Protocol client in Spring AI applications.
- MCP Client Examples - Comprehensive examples showcasing the Model Context Protocol implementation in Spring AI, including client-server communication, tool discovery, filesystem operations, weather services, web search integration, and dynamic tool updates.
- MCP Annotations - Annotation-based programming model for implementing MCP servers and clients. Provides a clean, declarative approach to handling MCP operations with reduced boilerplate code. Includes core annotations that depend only on the MCP Java SDK and a Spring AI integration module.
- Spring Batch MCP Server - An MCP service for introspecting Spring Batch applications, providing AI assistants with access to batch job information.
- Spring Cloud Config MCP Server - An experimental MCP server implementation for Spring Cloud Config that exposes configuration management operations as AI tools, allowing AI assistants to retrieve, update, and refresh application configurations, as well as encrypt/decrypt sensitive values.
- JVM Diagnostics MCP - A Model Context Protocol service for obtaining JVM diagnostics, allowing AI assistants to access runtime information about Java applications.
- Kotlin Crypto Price MCP Server - A Kotlin-based Spring AI MCP server that provides real-time cryptocurrency price information from Binance.
- Spring AI MCP Database Integration Example - A practical implementation of MCP with Spring AI featuring two server applications exposing database operations (person and account data) via @Tool annotations and a client application that discovers and uses these tools with OpenAI models.
- GitHub MCP Application - A 100% Java GitHub MCP application built on Spring AI by Stephan Janssen, creator of Devoxx.
- AWS Sample MCP Demos - Collection of examples showing how to use Model Context Protocol with AWS services, including Spring AI implementations.
- Christian Tzolov
- Josh Long
- Dan Vega
- Thomas Vitale
- Dan Dobrin
- Marcus Hellberg
- Lize Roes
- Bouke Nijhuis
- Guillaume Laforge
- Brian Sam-Bodden
- Adib Saikali
- Clémentine Fourrier
- Craig Walls
- Ilja Leyberman
- This Day in AI
- Practical AI from Changelog
- Latent Space
- Your Undivided Attention
- TWIML (This Week in Machine Learning)
- Gradient Decent
- Spring Office Hours
- Bootiful Podcast
Your contributions are always welcome! Please read the contribution guidelines first.