Explore Developer Center's New Chatbot! MongoDB AI Chatbot can be accessed at the top of your navigation to answer all your MongoDB questions.

Learn why MongoDB was selected as a leader in the 2024 Gartner® Magic Quadrant™
MongoDB Developer
Java
plus
Sign in to follow topics
MongoDB Developer Center
chevron-right
Developer Topics
chevron-right
Languages
chevron-right

Tutorials

A high-level, class-based, object-oriented programming language. With Java Virtual Machine (JVM) Java applications are called WORA (Write Once Run Anywhere).

All Java Tutorials
All Tutorials
search
  • Latestcheck
  • Highest Rated
Tutorial

Terraforming AI Workflows: RAG With MongoDB Atlas and Spring AI

Learn how to automate infrastructure management with HashiCorp Terraform and MongoDB Atlas. This tutorial covers setting up clusters, vector search, and building a Spring Boot RAG app with OpenAI embeddings for intelligent data retrieval and scalable cloud integration.
MongoDB thumbnail image
JavaTerraformAISpring

Jan 29, 2025
Tutorial

Building invincible applications with Temporal and MongoDB

Learn how Temporal simplifies building resilient distributed systems. This tutorial demonstrates Temporal's Durable Execution, automatic retries, and human-in-the-loop workflows through a hands-on example of a resilient money transfer application using Java and MongoDB.
MongoDB thumbnail image

Jan 27, 2025
Tutorial

How To Build a Fraud Detection Model in Java Using Deeplearning4J

Learn how to combine neural networks and scalable data management to build a real-world fraud detection system in Java! This tutorial uses Deeplearning4J to train a neural network and MongoDB for efficient transaction data management. Follow along as we preprocess customer transaction data, train a model to spot fraud, and integrate MongoDB for scalability. Perfect for Java developers looking to dive into AI and build production-ready solutions.
MongoDB thumbnail image

Jan 27, 2025
Tutorial

Java Faceted Full-Text Search API using MongoDB Atlas Search

This is going to be a fun, practical tutorial demonstrating how to build a Java faceted full-text search API (like the ones powering sites like Amazon)! We’ll use an interesting dataset which showcases how you can effectively pair machine learning/AI-generated data with more traditional search to produce fast, cheap, repeatable, and intuitive search engines.
MongoDB thumbnail image

Jan 17, 2025
Tutorial

Serverless Development with AWS Lambda and MongoDB Atlas Using Java

Learn how to build and deploy a serverless function to AWS Lambda that communicates with MongoDB using the Java programming language.
MongoDB thumbnail image

Jan 13, 2025
Tutorial

Understanding Embedded Types in MongoDB with Java and Helidon

MongoDB provides a flexible schema design, allowing data modeling patterns that differ significantly from traditional relational databases. With MongoDB, you model data specifically for your use cases rather than using a generic schema that attempts to cover all cases.
java logo

Jan 09, 2025
Tutorial

Handle Time Series Data with MongoDB

Learn how MongoDB simplifies time series data management in this hands-on tutorial. Build a ship-tracking application to explore MongoDB's native time series collections, optimized for high write performance, geospatial queries, and horizontal scaling. Perfect for applications in finance, IoT, and logistics, this tutorial demonstrates how to efficiently manage and analyze time series data. Follow along with complete code examples and access the GitHub repository to get started today.
MongoDB thumbnail image

Nov 19, 2024
Tutorial

Spring Data Unlocked: Getting Started With Java and MongoDB

Are you a Java developer with a passion for MongoDB and Spring? This series is for you. It walks you through integrating MongoDB with Spring Data, starting from the basics and moving towards more advanced concepts. You’ll learn the differences between MongoRepository and MongoTemplate, understand when to use each, and how to create complex queries with improved performance using indexes. By the end, you’ll be equipped to make the most of Spring Data’s features.
MongoDB thumbnail image

Nov 11, 2024
Tutorial

Spring Data Unlocked: Advanced Queries With MongoDB

In the second part of the Spring Data Unlocked series, we continue building on the concepts introduced in Getting Started With Java and MongoDB. In this section, we focus on creating advanced queries and exploring how Spring Data works seamlessly with MongoDB.
MongoDB thumbnail image

Nov 08, 2024
Tutorial

Seamless Media Storage: Integrating Azure Blob Storage and MongoDB With Spring Boot

Learn how to build a Spring Boot application to upload your media files into Azure Blob Storage, while storing associated metadata in MongoDB.
MongoDB thumbnail image

Nov 05, 2024