How to disable auto creation of db and collection in spring data mongodb?

757 Views Asked by At

I am working on a spring boot project which uses spring data mongodb. Spring data mongodb auto creates the db and collection when it doesn't exists. I want to disable auto creation of db and collection in mongodb when it doesn't exists.

How to achieve that? Is there any property which can be used?

0

There are 0 best solutions below