How to connect to mongodb on remote server from spring boot?

I am working on multi-tenant application so i have multiple database now i want to specify a database in the model.
Anyone have any idea about this how to do?