I am trying to get the list of collections on a database. My application uses spring-boot 2.4.1 and MongoDB. Below is the code block.
String uri= "mongodb://