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?