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
MongoDB Developer Centerchevron-right
Developer Topicschevron-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

Handle Time Series Data with MongoDB

MongoDB thumbnail image

Nov 19, 2024 | 13 min read
Tutorial

Terraforming AI Workflows: RAG With MongoDB Atlas and Spring AI

MongoDB thumbnail image

Nov 18, 2024 | 11 min read
Tutorial

Spring Data Unlocked: Getting Started With Java and MongoDB

MongoDB thumbnail image

Nov 11, 2024 | 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
  • Latest
  • Highest Rated
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
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