Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/amrutprabhu/spring-boot-3-with-mongodb

Spring Boot 3 MongoDB Commuication
https://github.com/amrutprabhu/spring-boot-3-with-mongodb

docker docker-compose mongodb spring spring-boot

Last synced: 27 days ago
JSON representation

Spring Boot 3 MongoDB Commuication

Awesome Lists containing this project

README

        

# Spring Boot 3 with MongoDb

In this repository we see how we can communicate with MongoDB using Spring Data MongoDB

### Sample Post Request
```shell
curl --location --request POST 'http://localhost:8080/product' \
--header 'Content-Type: application/json' \
--data-raw '{
"productName" : "Macbook Pro",
"price" : "1234.456",
"attributes" :{
"CPU" : "M1",
"Model" : "X51",
"Hard Disk": "512GB"
}

}'
```