How to use mongodb with spring boot with real example

preview_player
Показать описание
Hey hey spring boot lovers❗️❗️

If you are having trouble with using mongodb in your spring boot application, then you have come to the right place. 🥳

Today, we will take a look at a very interesting topic! That is how to use mongodb in spring boot with real example!

More specifically, we will see how to use MongoRepository and MongoTemplate step by step!

Ready for the show?!

Let's rock it!! 😜

Other places to find me:
⭐ Facebook: @fullstackalley
⭐ Twitter: @jasper_zs
Рекомендации по теме
Комментарии
Автор

Jasper I usually don't write comments but you saved me a few hours of frustration in the least, thank you very much and have a great day :-)

benyaminben-david
Автор

Thanks for this video and always add English subtitle each video 😉

adhiprasetyo
Автор

Nice video! Can you make one video on enabling ssl on mongodb and connecting it from springboot. Don't have this video on youtube.

ProjectAryawarta
Автор

Using reflection to partially update a record is cool but risky. For example, there's a possibility that the getter method cannot be found because the way how your compiler generates getter method names is different from capitalizing the string yourself. I see that you are only updating the record if the field in the request Product object is not null, but if I want to set the value to null, it will probably not allow me to do so. It is fine for demonstration purposes though. Btw, will it fire multiple updates to the MongoDB if you call the repository partialUpdate method multiple times in the for loop?

michaelchung
Автор

This is exactly like working with an RDBMS database in Spring Boot. What about transactions? Will it just work by using the @Transactional annotation from Spring?

michaelchung
Автор

Shall WE ? let's head to blinkiten city!

TanYihua-geyd
Автор

Can you please explain how to use mongodb native query (example: db.colection.insertOne({})) in mongo repository with @Query annotation? Because I wan't to insert data without find query first.

edrickajah
Автор

Thanks for this video, .
Can you comment bellow the github link for this project ?
PLEASE :)

mouadmoufidi
Автор

Description:

Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.

Reason: Failed to determine a suitable driver class


Action:

Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).

sonogonowatashi
Автор

is that really meant to be a tutorial or you just bragging how speed you can write
you should ve atleast upload the Code, the Json Products File

bashmogd
join shbcf.ru