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
MongoDB Developer Center
chevron-right
Developer Topics
chevron-right

Java

plus Follow
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
MongoDBJava

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
All Java Articles
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

Java Faceted Full-Text Search API using MongoDB Atlas Search

MongoDB thumbnail image

Jan 17, 2025 | 18 min read
Tutorial

Serverless Development with AWS Lambda and MongoDB Atlas Using Java

MongoDB thumbnail image

Jan 13, 2025 | 6 min read
Tutorial

Understanding Embedded Types in MongoDB with Java and Helidon

java logo

Jan 09, 2025 | 5 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

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
LT
Luke Thompson
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
Nic Raboy
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
Otavio Santana
Article

Spring Data Unlocked: Performance Optimization Techniques With MongoDB

Discover the journey of mastering MongoDB with Spring Data! In Part 1, we explored the basics, including MongoTemplate vs. MongoRepository. Part 2 took us deeper into advanced queries and Spring's powerful features. Now, in Part 3, we'll focus on optimizing your application with strategies like read preferences and indexing
MongoDB thumbnail image

Dec 04, 2024
Ricardo Mello
Quickstart

Building Quarkus Application with MongoDB and Panache

In this tutorial, we will learn about building a Quarkus application with Panache and MongoDB. Panache is a Quarkus-specific library that simplifies the development of your Hibernate-based persistence layer.
java logo

Dec 03, 2024
Aasawari Sahasrabuddhe
Article

Java vs Kotlin: Different Syntax, Same Possibilities

In this article, we’ll cover how to use some MongoDB features, and compare and contrast how they look and feel in Kotlin and Java.
MongoDB thumbnail image

Nov 25, 2024
AM
Ashni Mehta
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
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

Nov 18, 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