Getting this issue while tring to connect to Atlas Mongo using SRV Record:
[ERROR] Message : com.mongodb.MongoConfigurationException: Failed looking up TXT record for host
[ERROR] : class javax.naming.spi.NamingManager (in module java.naming) cannot access class com.sun.jndi.dns.DnsContextFactory (in module jdk.naming.dns) because module jdk.naming.dns does not export com.sun.jndi.dns to module java.naming
Getting this issue while tring to connect to Atlas Mongo using SRV Record:
[ERROR] Message : com.mongodb.MongoConfigurationException: Failed looking up TXT record for host
[ERROR] : class javax.naming.spi.NamingManager (in module java.naming) cannot access class com.sun.jndi.dns.DnsContextFactory (in module jdk.naming.dns) because module jdk.naming.dns does not export com.sun.jndi.dns to module java.naming
URL specified as: flyway.url = jdbc:mongodb+srv://clustername.wff5g.mongodb.net/dbname