Voyage AI joins MongoDB to power more accurate and trustworthy AI applications on Atlas.

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

MongoDB Developer

Java

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

Featured

Quickstart

Java - Mapping POJOs

Learn how to use the native
mapping of POJOs using the
MongoDB Java Driver.
...
MongoDB thumbnail image

Mar 01, 2024 | 5 min read
Maxime Beugnet
Tutorial

Java Aggregation Expression Builders in MongoDB

MongoDB thumbnail image

Apr 02, 2024 | 11 min read
Quickstart

Getting Started with MongoDB and Java - CRUD Operations Tutorial

MongoDB thumbnail image

Mar 01, 2024 | 24 min read
Java Articles
All Java Articles
Article

Spring Data Unlocked: Performance Optimization Techniques With MongoDB

MongoDB thumbnail image

Dec 04, 2024 | 5 min read
Article

Java vs Kotlin: Different Syntax, Same Possibilities

MongoDB thumbnail image

Nov 25, 2024 | 5 min read
Article

Building a Quarkus Application to Perform MongoDB Vector Search

MongoDB thumbnail image

Oct 07, 2024 | 9 min read
Java Quickstarts
All Java Quickstarts
Quickstart

Building Quarkus Application with MongoDB and Panache

java logo

Dec 03, 2024 | 5 min read
Quickstart

Introduction to MongoDB and Helidon

java logo

Nov 12, 2024 | 6 min read
Quickstart

How to Build a CRUD Application With MongoDB, Quarkus, and GraalVM

MongoDB thumbnail image

Aug 29, 2024 | 7 min read
Java Code Examples
All Java Code Examples
Code Example

Reactive Java Spring Boot with MongoDB

MongoDB thumbnail image

Apr 02, 2024 | 5 min read
Code Example

How to Implement Client-Side Field Level Encryption (CSFLE) in Java with Spring Data MongoDB

MongoDB thumbnail image

Jan 27, 2024 | 11 min read
Code Example

REST APIs with Java, Spring Boot, and MongoDB

MongoDB thumbnail image

Oct 25, 2023 | 4 min read
Java Tutorials
All Java Tutorials
Tutorial

Terraforming AI Workflows: RAG With MongoDB Atlas and Spring AI

MongoDB thumbnail image

Jan 29, 2025 | 11 min read
Tutorial

Building invincible applications with Temporal and MongoDB

MongoDB thumbnail image

Jan 27, 2025 | 26 min read
Tutorial

How To Build a Fraud Detection Model in Java Using Deeplearning4J

MongoDB thumbnail image

Jan 27, 2025 | 15 min read
Java Videos
All Java Videos
Video

Getting Started with Atlas Search and Java

MongoDB thumbnail image
Play Button

Sep 03, 2024 | 14 min
Video

Testing Java Applications with MongoDB Using TestContainers.

MongoDB thumbnail image
Play Button

Aug 26, 2024 | 7 min
Video

Sharding and Spring Data MongoDB: Scale Your Data

MongoDB thumbnail image
Play Button

Aug 15, 2024 | 8 min
All Java Content
search
  • Latestcheck
  • Highest Rated
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
Tim Kelly
Quickstart

Introduction to MongoDB and Helidon

This tutorial introduces building a Java application with MongoDB and Helidon, a framework for lightweight, cloud-native microservices. You'll learn to set up Helidon with MongoDB, create a tool management API, and configure a Docker-based MongoDB instance or connect to MongoDB Atlas. The guide covers creating and using a MongoDB repository with Jakarta Data, building a REST API for CRUD operations, and implementing pagination. Sample code is available on GitHub to help you follow along seamlessly and build scalable, high-performance microservices.
java logo

Nov 12, 2024
Otavio Santana
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
Ricardo Mello
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
Ricardo Mello
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
Tim Kelly
Tutorial

AI-Powered Playlist Generator: Crafting Custom Vibes With Deeplearning4j and MongoDB

Create custom playlists with the AI-powered Playlist Generator tutorial, using Deeplearning4j and MongoDB Atlas Vector Search to turn any unique vibe—like 'midwestern emo puppy love'—into the perfect song collection. This guide walks through embedding song lyrics, leveraging Java-based deep learning for semantic understanding, and querying MongoDB to return tunes that match your playlist’s essence. Dive in for a detailed, hands-on experience with Java, GloVe embeddings, MongoDB, and vector search integration to simplify your playlist creation with AI.
MongoDB thumbnail image

Oct 25, 2024
Tim Kelly
Tutorial

Building a Semantic Search Service With Spring AI and MongoDB Atlas

Learn how to get started with Spring AI and the MongoDB vector store integration. Use vector search to semantically search your data, all in the Spring ecosystem.
MongoDB thumbnail image

Oct 24, 2024
Tim Kelly
Tutorial

Java Meets Queryable Encryption: Developing a Secure Bank Account Application

Learn how to seamlessly integrate Java with MongoDB Queryable Encryption in a fully automated way. This process allows you to leverage the advanced encryption features of MongoDB, ensuring that your data remains protected even during complex queries, without the need for manual encryption or decryption steps
MongoDB thumbnail image

Oct 08, 2024
Ricardo Mello
Article

Building a Quarkus Application to Perform MongoDB Vector Search

This article explores building a Quarkus application using MongoDB's vector search for smarter, context-aware search results. We'll cover generating embeddings with Gemini AI and creating a vector index in MongoDB. Learn how to enhance your application's search capabilities with this modern approach.
MongoDB thumbnail image

Oct 07, 2024
Aasawari Sahasrabuddhe
Quickstart

Java - Change Streams

In this quickstart, learn how to use Change Streams using the MongoDB Java driver, with five different examples to showcase certain features.
MongoDB thumbnail image

Oct 01, 2024
Maxime Beugnet