mongo java.lang.IllegalArgumentException: The connection string contains options without trailing slash code example
Example: mongodb local connection string
mongodb://localhost:27017/mydbname
mongodb://localhost:27017/mydbname