JavaStandalone

Using Oracle AI Database's MongoDB API with Spring Data MongoDB

Spring Data MongoDB sample that uses the Oracle AI Database API for MongoDB through ORDS.

ORDSSpring#Java#MongoDB#ORDS#SpringBoot
What this sample helps you learn

MongoDB is a popular, open-source NoSQL database management program that stores data in a flexible, JSON-like format, making it ideal for handling large, unstructured, or semi-structured data.

What this sample demonstrates

ORDS

Oracle REST Data Services samples for exposing database-backed APIs.

Use when clients need REST, MongoDB-compatible, or service-style access without owning low-level SQL.

Spring

Runnable Spring behavior on Oracle AI Database.

Use when Spring needs to be tested against real database behavior.

Highlights

  • DB_USERNAME (the database username you'll use to connect)
  • DB_PASSWORD (the database password you'll use to connect)
  • DB_URI (the URI of your database instance, e.g., my-db.adb.my-region.oraclecloudapps.com)