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

Introducing MongoDB 8.0, the fastest MongoDB ever!
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

Building a Quarkus Application to Perform MongoDB Vector Search

MongoDB thumbnail image

Oct 07, 2024 | 9 min read
Article

Why Unstructured Data is a Good Fit for Java

MongoDB thumbnail image

Sep 16, 2024 | 7 min read
Article

How to Optimize Java Performance With Virtual Threads, Reactive Programming, and MongoDB

MongoDB thumbnail image

Aug 29, 2024 | 5 min read
All Java Articles
Java Quickstarts
All Java Quickstarts
Quickstart

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

MongoDB thumbnail image

Aug 29, 2024 | 7 min read
Quickstart

Getting started with Minecraft and MongoDB

MongoDB thumbnail image

Jul 15, 2024 | 4 min read
Quickstart

Getting Started with MongoDB and Java - CRUD Operations Tutorial

MongoDB thumbnail image

Mar 01, 2024 | 24 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 Meets Queryable Encryption: Developing a Secure Bank Account Application

MongoDB thumbnail image

Oct 08, 2024 | 14 min read
Tutorial

Getting Started With MongoDB and Amazon Q Developer generative AI–powered coding assistant

MongoDB thumbnail image

Sep 25, 2024 | 3 min read
Tutorial

Retrieval-Augmented Generation With MongoDB and Spring AI: Bringing AI to Your Java Applications

MongoDB thumbnail image

Sep 23, 2024 | 6 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
Video

Testing Java Applications with MongoDB Using TestContainers.

✅ Register for free tier Atlas → https://mdb.link/z8qC1lwIIUA-register ✅ Load sample Data → https://mdb.link/z8qC1lwIIUA-doc ✅ Link to article → https://mdb.link/z8qC1lwIIUA-article - This video will help you understand the usage of testcontainers in a Java application. This video also covers the use of testcontainers while writing integration testing for Spring Boot applications. - ✅ Learn more about testcontainers → https://testcontainers.com/ ✅ GitHubRepo Testcontainers with Vanilla Java → https://github.com/mongodb-developer/testcontainers-with-mongodb-and-java ✅ Testcontainers with SpringBoot applications → https://github.com/mongodb-developer/spring-boot-mongodb-aggregations
MongoDB thumbnail image
Play Button

Aug 26, 2024
Tutorial

Exploring the Advanced Search Capabilities With MongoDB Atlas Search

In this third part of our Atlas Search with Spring Boot series, we dive into advanced topics like custom analyzers, language-specific analyzers, GeoJSON data, and combining search with MongoDB's $lookup stage. If you haven’t read the earlier parts, check them out to build a solid foundation.
MongoDB thumbnail image

Aug 20, 2024
Aasawari Sahasrabuddhe
Tutorial

Exploring Search Capabilities With Atlas Search

In the second part of our series on MongoDB Atlas Search with Spring Boot, we dive into practical applications of search indexes. Building on Part 1, which covered creating Atlas Search indexes, this article focuses on implementing search queries to enhance user experience. This tutorial equips you with the skills to implement efficient search functionality, making your applications more responsive and user-friendly. Whether you're new to MongoDB or experienced, you'll find valuable insights to optimize your search capabilities.
MongoDB thumbnail image

Aug 20, 2024
Aasawari Sahasrabuddhe
Video

Sharding and Spring Data MongoDB: Scale Your Data

✅ Sign-up for a free cluster at → https://www.mongodb.com/cloud/atlas/register ✅ Get help on our Community Forums → https://www.mongodb.com/community/forums/https://mdb.link/gQlBGappBgk-tutorial" target="_blank" rel="noreferrer">https://mdb.link/gQlBGappBgk-tutorialhttps://mdb.link/gQlBGappBgk-download" target="_blank" rel="noreferrer">https://mdb.link/gQlBGappBgk-downloadhttps://start.spring.io/" target="_blank" rel="noreferrer">https://start.spring.io/ In this MongoDB video, we'll explore the intricacies of sharding in MongoDB and how it can be integrated with a Spring application using Spring Data MongoDB. We'll delve into the setup of a sharded cluster, the selection of a shard key, and the configuration necessary to distribute data across multiple servers. This tutorial is perfect for developers looking to scale their MongoDB databases horizontally and improve their application's performance and scalability. 📚 RESOURCES 📚 https://mdb.link/gQlBGappBgk-tutorial" target="_blank" rel="noreferrer">https://mdb.link/gQlBGappBgk-tutorial https://mdb.link/gQlBGappBgk-download" target="_blank" rel="noreferrer">https://mdb.link/gQlBGappBgk-download https://start.spring.io/" target="_blank" rel="noreferrer">https://start.spring.io/ ⏱️ Timestamps ⏱️ Introduction to Sharding [00:00:00 - 00:01:24] Brief Description: The chapter introduces the concept of sharding in databases, explaining its importance for distributing data across multiple servers. It also outlines the prerequisites for the tutorial, including Java, Maven, and a Spring Boot project setup. Setting Up the Cluster [00:01:24 - 00:02:48] Brief Description: This section guides the viewer through the process of creating a new cluster, detailing the necessary configurations for sharding, such as selecting an M30 cluster tier and the number of shards. Preparing the Environment [00:02:48 - 00:04:12] Brief Description: The chapter focuses on preparing the development environment, including loading sample data into the database, connecting to the MongoDB shell, and the initial steps to shard a collection. Sharding the Collection [00:04:12 - 00:05:36] Brief Description: The viewer is walked through the process of sharding a collection using the MongoDB shell, with an emphasis on choosing a shard key and understanding best practices for key selection. Integrating Sharding with Spring Data [00:05:36 - 00:07:00] Brief Description: This chapter discusses how to integrate sharding into a Spring Data application, highlighting the importance of the @ShardKey annotation in the model and its role in query optimization and schema evolution. Finalizing and Testing [00:07:00 - 00:08:31] Brief Description: The final chapter wraps up the tutorial by showing how to verify the sharding setup and discussing the final steps to query a sharded database within a Spring Data application. It concludes with an invitation to engage with the MongoDB community. ------ ✅ Subscribe to our channel → https://mdb.link/subscribe
MongoDB thumbnail image
Play Button

Aug 15, 2024
Tutorial

Single-Collection Designs in MongoDB with Spring Data (Part 2)

In the second part of the series, we provide examples of how the single-collection pattern can be utilized in Java applications using Spring Data MongoDB.
Spring

Aug 12, 2024
Graeme Robinson
Tutorial

Building a Real-Time, Dynamic Seller Dashboard on MongoDB

In this article, we look at how a single query on MongoDB can power a real-time view of top-selling products, and deep-dive into the top-selling regions.
building a real-time, dynamic dashboard

Aug 05, 2024
Karthic Subramanian (+1)
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

Aug 01, 2024
Tim Kelly
Tutorial

Getting started with MongoDB Atlas Search and Java

This tutorial will help you understand the concepts of Atlas Search and also teach how to create the indexes using Atlas UI, Atlas CLI and programatically using Spring Boot Application.
MongoDB thumbnail image

Jul 30, 2024
Aasawari Sahasrabuddhe
Article

Streamlining Java Application Development With MongoDB: A Comprehensive Guide to Using Testcontainers

This tutorial will help you understand using testcontainers for writing JUnits test for a Spring and Java application.
MongoDB thumbnail image

Jul 22, 2024
Aasawari Sahasrabuddhe
Quickstart

Getting started with Minecraft and MongoDB

This tutorial explains on connecting a Minecraft Java application with MongoDB Atlas cluster.
MongoDB thumbnail image

Jul 15, 2024
Aasawari Sahasrabuddhe