My application is a Spring boot application and the application configuration properties file look like:
....
spring.data.mongodb.host=ip
spring.data.mongodb.port=27017
spring.data.mongodb.admin.database=admin
spring.data.mongodb.database=myDB
spring.data.mongodb.username=su
spring.data.mongodb.password=su1$
....
Now the thing is for high availability MongoDB has been moved to a Primary-Secondary-Arbiter setup. What changes should I do in order to connect to this. Tried separating with comma but that did not help.