Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Complete GenAI with Java & Spring AI: LLMs, RAG, AI Agents
Bestseller
Role Play
Rating: 4.5 out of 5(296 ratings)
3,878 students

Complete GenAI with Java & Spring AI: LLMs, RAG, AI Agents

Build production-ready AI apps with Spring AI: LLMs, RAG, Agents, Multi-Agent Systems, Chat Memory, MCP, Observability
Last updated 11/2026
English
Arabic [Auto],German

What you'll learn

  • Learn and implement GenAI applications using Java and Spring AI
  • Learn how to call remote Large Language Models using OpenAI, Google Gemini and Hugging Face API
  • Learn how to call local Large Language Models using Ollama and Docker Model Runner
  • Learn and implement Spring AI advanced concepts: Streaming, Structured output, Chat options, Advisors, Prompt templates
  • Learn Prompt engineering best practices including zero/one/few shot, CoT, changing creativity(temperature), controlled variability(top-p,) limiting tokens
  • Learn Prompt hacking techniques and their mitigation strategies: Prompt injection, Jailbreaking, Prompt leaking and Advanced hacking techniques
  • Understand GenAI and LLM fundamentals: Tokenizers, Embeddings, Positional encoding, Transformer architecture, Token prediction and Softmax formula
  • Understand chat memory and implement with multiple backends using Spring AI: In-memory and JDBC for short-term memory, Vector store for long-term memory
  • Learn and implement multimodality using text, image and sound conversion use cases
  • Understand LLM limitations and their possible mitigations
  • Learn and implement advanced RAG systems
  • Learn and implement AI Agent systems with autonomous and chained workflow agentic systems
  • Learn and implement Human-in-the-loop pattern in AI Agent systems
  • Understand MCP (Model Context Protocol) and implement MCP server and MCP client applications using Spring AI
  • Understand and apply Observability to RAG and AI Agent systems using Spring Observability
  • Build a multi-agent security review system with Spring AI, using specialized sub-agents for RAG evidence and Web guidance
  • Design agent-to-agent communication with typed contracts, tool-based delegation and separate conversation contexts
  • Compare orchestration and choreography, and run independent sub-agents in parallel with CompletableFuture

Course content

16 sections • 145 lectures • 27h 23m total length
  • Course structure & Outline4:29

    Get an overview of the course structure and practical spring ai learning path, covering multi-model chat clients, prompt engineering, GenAI fundamentals, memory, multimodality, Rag, AI agents, MCP, and observability.

  • Build your first Spring AI app in 5 minutes3:40

    Build a Spring AI app fast with a summarizer using OpenAI, system messages, and one-shot prompts. Expose a REST endpoint that returns the meeting notes summary.

  • Learning paths: How to navigate this course based on your goals2:46

    Navigate four learning paths—Spring AI foundations, Rag systems, AI agents with MCP, and production concerns—select sections by goal for fast hands-on value.

  • What you will build: Basic use cases6:37

    Learn to build basic use cases with Spring AI, including base chat, one-shot prompting, and summarization, across OpenAI, Vertex AI, HuggingFace, Olama, and Docker runtimes.

  • What you will build: Advanced use cases6:22

    Explore advanced GenAI use cases across chat memory, multi-modality, and rag workflows, including in-memory and persisted memory, vector stores, ai agents, and observability, using Spring AI and OpenAI.

  • Setting up the environment5:35

    Set up and verify Java JDK 25, Maven, and IntelliJ. Configure Git, Docker, and environment variables for a GenAI workflow, and prepare API keys for OpenAI and other services.

  • Source code repository, presentations & diagrams0:11
  • How Spring AI can provide necessary functionality to GenAI applications
  • GenAI and Spring AI basics

Requirements

  • Basic to intermediate knowledge of Java
  • Familiarity with Spring Boot
  • Experience with backend development concepts
  • Basic familiarity with AI/LLM concepts

Description

Want to build real-world Generative AI (GenAI) applications with Java, Spring Boot, Spring AI, RAG and AI Agents—not just experiment with prompts?

This course will take you from fundamentals to production-oriented AI systems, including RAG pipelines, AI agents, Multi-Agent systems, tool calling, chat memory, MCP, observability, prompt engineering, and prompt hacking.


Hi there! My name is Ali Gelenler. I'm here to help you learn GenAI using Java and Spring AI from fundamentals to real-world production ready AI architectures and systems with a practical approach.

Even if you are not a daily Java developer, this course can still help you understand how production-oriented GenAI systems are designed and implemented in a structured backend environment.

In this course, you will focus on creating AI applications to go beyond AI generated code and implement over 20 use cases using Java and Spring AI together with various AI providers and models, such as Open AI, Google Gemini Vertex AI, Hugging Face, Ollama and Docker Model Runner. You will build AI applications and AI systems using LLMs (Large Language Models), integrate vector databases and embeddings, and design scalable backend architectures for Generative AI.

The course also includes production-oriented Agentic AI design with tool calling, workflow design, chaining, decision control, human-in-the-loop steps, multi-agent system and MCP integration.

You will also extend a security review application into a multi-agent system using Java and Spring AI. Build specialized sub-agents for internal knowledge retrieval and external web guidance, define clear input/output contracts, and keep their working context separate from the main orchestrator. Compare orchestration with choreography, then run independent sub-agents in parallel while preserving the workflow’s human approval checkpoints.

You will learn:

  • Building end-to-end GenAI systems in Java and Spring AI with advanced Spring AI concepts

  • Designing RAG pipelines with vector databases, embeddings, similarity search and semantic search using advanced ingestion and retrieval strategies such as query transformer, query expander, pre/post processors, re-ranker, metadata filtering and dynamic resource updates

  • Creating AI agents with tool/function calling using autonomous and chained workflow Agentic AI systems

  • Implementing Human-in-the-loop pattern in AI agents with checkpoint-based auto-progression with state machine

  • Implementing chat memory and long-term context with in-memory, JDBC and vector store backends using Spring AI advisors

  • Applying prompt engineering best practices and defend against prompt hacking techniques including prompt injection, jailbreaking and prompt leaking attacks

  • Creating effective Multi-Agent Systems for context protection, specialization, scalability and parallelization

  • Learning Multi-Agent and Agent-to-Agent communication patterns

  • Using MCP (Model Context Protocol) for distributed AI systems, creating MCP Server and MCP client using Spring AI

  • Adding Observability (logs, traces, metrics) to AI applications

  • Learning Gen AI and LLM Fundamentals with Tokenizers, Embeddings, Positional encoding, Transformer architecture, Token prediction and Softmax formula

  • Mapping the Gen AI and LLM Fundamentals into practical solutions

  • Understanding LLM limitations and possible mitigations


You will implement 20+ real-world use cases, including:

  • AI-powered assistants: Summarizer, Java Doc generator, Programming helper, Email drafter, Post generator

  • Document Q&A systems with advanced RAG pipelines

  • Security review assistant: AI agent system to analyze architecture diagrams using RAG, web search and an MCP tool. Implement autonomous and chained workflows with human approval checkpoints, then extend the application with specialized sub-agents and parallel evidence collection.

  • Multimodal applications including Image-to-Text, Text-to-Image, Speech-to-Text and Text-to-Speech use cases

  • Order status helper with advanced chat memory strategies

  • Production-oriented AI systems with monitoring and tracing


Technologies & tools you will use:

  • Java & Spring AI

  • Advanced Spring AI concepts: Streaming, Structured output, Chat options, Advisors, Prompt templates

  • OpenAI, Google Gemini (Vertex AI), Hugging Face APIs

  • Ollama & Docker Model Runner for local LLMs

  • Vector databases using PgVector

  • AI Agents and Multi-Agent Systems

  • MCP (Model Context Protocol) with MCP Server and MCP Client implementations

  • Observability tools (Grafana, Prometheus, Otlp, Tempo, Jaeger, Loki and Promtail)


This is a practical and production-oriented course. You will not just generate code using AI tools—you will learn how to:

  • Design systems

  • Handle real-world limitations

  • Build scalable and maintainable AI applications


For more detailed information on the progress of this course, you can check the introductory video and free lessons, and if you decide to enroll in this course, you are always welcome to ask and discuss the concepts and implementation details on Q/A and messages sections. I will guide you from start to finish to help you successfully complete the course and gain as much knowledge and experience as possible from this course.


Support & updates

  • You can ask questions anytime in Q&A

  • The course will be continuously updated as Spring AI evolves

  • You’ll get guidance to fully understand and apply concepts


Remember! There is a 30-day full money-back guarantee for this course! So you can safely press the 'Buy this course' button with zero risk and join this learning journey with me.

Who this course is for:

  • Java and Spring developers who already understand basic LLM applications and want to build AI agents and multi-agent systems with clear contracts, controlled workflows and observability in real-world applications
  • Backend engineers looking to build production-oriented AI applications with RAG pipelines and AI agent systems
  • Software engineers who want to move beyond AI-generated code and understand how GenAI systems actually work