Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Complete Java & Spring Boot with Spring AI, RAG & AI Agents
Role Play
Highest Rated
Rating: 4.7 out of 5(29 ratings)
325 students

Complete Java & Spring Boot with Spring AI, RAG & AI Agents

Go from Java basics to Spring Boot microservices, Spring AI, RAG, AI agents and MCP, then deploy with Docker and AWS
Last updated 9/2026
English
English

What you'll learn

  • Write modern Java with OOP, collections, exceptions, lambdas, the Stream API and Optional
  • Use Git and GitHub, write SQL with PostgreSQL, and build Java projects with Maven and JDBC
  • Build REST APIs with Spring Boot and Spring MVC using DTOs, validation and global exception handling
  • Model and query data with Spring Data JPA and Hibernate: relationships, pagination, projections and N+1 fixes
  • Secure APIs with Spring Security, JWT access and refresh tokens, Google OAuth2 login and role-based access
  • Build microservices with Eureka service discovery, Spring Cloud Gateway, OpenFeign and Resilience4j
  • Build GenAI features in Java with the OpenAI SDK and Spring AI: ChatClient, structured output and streaming
  • Build RAG apps with embeddings and Qdrant, and add conversation memory and custom Spring AI advisors
  • Build safe AI agents with tool calling and human approval, and create and consume MCP servers with Spring AI
  • Containerize Spring Boot apps with Docker and Docker Compose, and run a microservice stack locally
  • Deploy to AWS Elastic Beanstalk with managed PostgreSQL, Spring profiles, GitHub Actions CI/CD and Flyway

Coding Exercises

This course includes our updated coding exercises so you can practice your skills as you learn.

See a demo
Image of coding exercise example

Course content

26 sections • 166 lectures • 37h 53m total length
  • Introduction8:45

    Embark on a comprehensive journey into the world of Java development, where you'll not only learn the basics but also dive deep into advanced concepts like microservices and generative AI. This meticulously structured course spans 37.5 hours of content that will challenge and enhance your proficiency, encouraging a thorough and paced learning experience.


    Starting with foundational topics, you'll explore building REST APIs using Spring Boot and Spring MVC, delving into critical elements such as Hibernate and N+1 query fixes to optimize database performance. The course then transitions into mastering Java fundamentals and object-oriented programming, essential for any aspiring Java developer. You’ll also encounter modern Java features, including stream API, method references, and the ever-important Git for version control.


    Progressing into advanced territory, the course covers microservice architecture, providing valuable insights into when and how to implement these structures effectively. Additionally, you'll explore the burgeoning field of Generative AI, with practical applications using Spring AI, embeddings, and specialized databases like Quadrant for vector storage. The deployment phase introduces Docker and AWS, equipping you with the skills to deploy applications efficiently on the cloud.


    After completing this course, you'll have a robust understanding of both foundational and cutting-edge Java technologies, enabling you to tackle complex development challenges with confidence and skill.

  • Code files for the course0:02

    Course files for the entire course lives here

Requirements

  • A computer (Windows, macOS or Linux) that can run Java, IntelliJ IDEA and Docker
  • No prior Java experience needed. Basic programming familiarity helps, but we start from the fundamentals
  • For the GenAI sections, an OpenAI or Anthropic API key with a small amount of credit
  • For the deployment section, an AWS account (free tier works for learning) and a GitHub account

Description

This course takes you from writing your first Java program to building, securing and deploying production-style Spring Boot applications, and then adding real AI features with Spring AI. Everything is taught hands-on: you write the code alongside us, hit the same errors, and fix them the way you would on a real project.

What you will build and learn

  • Java fundamentals and modern Java: OOP, exceptions, collections, lambdas, the Stream API, Optional, BigDecimal and the Date-Time API.

  • Developer foundations: Git and GitHub, SQL with PostgreSQL, Maven builds and profiles, and JDBC with prepared statements and transactions.

  • Backend and Spring Boot: HTTP and REST design, beans and dependency injection, REST controllers, DTOs, validation, the service layer and global exception handling.

  • Spring Data JPA and Hibernate: entity mapping, relationships, pagination, projections, cascading, transactions and fixing N+1 queries.

  • Spring Security: the filter chain, custom authentication, JWT access and refresh tokens, Google OAuth2 login, session limits, roles, permissions and method-level security.

  • Microservices: Eureka service discovery, Spring Cloud Gateway, OpenFeign and Resilience4j retry, rate limiting and circuit breakers.

  • Generative AI with Spring AI: how LLMs work, prompts and model controls, the OpenAI Java SDK, ChatClient, structured output, streaming and multimodal input.

  • RAG, memory and advisors: embeddings, Qdrant vector search with tenant isolation, document ingestion, manual and advisor-based RAG, conversation memory and custom advisors.

  • Tools, agents and MCP: safe tool calling with human approval, practical agents with observability and evaluation, and building and consuming MCP servers.

  • Docker and deployment: Dockerfiles, Docker Compose, managed PostgreSQL, Spring profiles, AWS Elastic Beanstalk, GitHub Actions CI/CD and Flyway migrations.

How the course works

Each section builds on the previous one, and every section ends with a quiz so you can check your understanding before moving on. Lectures come with captions, and you can ask questions in the Q&A whenever you get stuck.

By the end, you will be able to design, build, secure and deploy a modern Java backend, and confidently add GenAI features such as RAG, memory, tool calling and agents to real Spring Boot applications.

Who this course is for:

  • Beginners who want to become job-ready Java backend developers from scratch
  • Developers coming from JavaScript, Python or other languages who want to move to Java and Spring Boot
  • Java developers who want to master modern Spring Boot, security, microservices and deployment
  • Backend developers who want to add GenAI, RAG, AI agents and MCP to real Spring Boot applications