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

how can i identify if it’s a replica or a standalone ?