url needs to start with mongodb // mongodb+srv java code example Example: can we replace a mongouri string with localhost mongodb://mongodb0.example.com:27017