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
plus
Sign in to follow topics
MongoDB Developer Centerchevron-right
Developer Topicschevron-right
Languageschevron-right

Code Examples

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 Code Examples
All Code Examples
search
  • Latest
  • Highest Rated
Code Example
FULL APPLICATION

Reactive Java Spring Boot with MongoDB

Quick start to Reactive Java Spring Boot and Spring Data MongoDB with an example application which includes implementations ofReactiveMongoRepository and ReactiveMongoTemplate and multi-document ACID transactions
MongoDB thumbnail image
JavaMongoDBSpring

Apr 02, 2024
Code Example
FULL APPLICATION

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

In this advanced MongoDB CSFLE Java template, you'll learn all the tips and tricks for a successful deployment of CSFLE with Spring Data MongoDB.
MongoDB thumbnail image

Jan 27, 2024
Code Example
FULL APPLICATION

REST APIs with Java, Spring Boot, and MongoDB

Take a shortcut to REST APIs with this Java/Spring Boot and MongoDB example application that embeds all you'll need to get going.
MongoDB thumbnail image

Oct 25, 2023
Code Example
FULL APPLICATION

Build a MongoDB Spring Boot Java Book Tracker for Beginners

Build an application to track the books you've read with Spring Boot, Java, and MongoDB
java logo

Jun 09, 2023