val JDBC_DRIVER = "org.h2.Driver"
val DB_URL = "jdbc:h2:mem:test;DB_CLOSE_DELAY=-1"
val USER = "sa"
val PASS = ""
Class.forName(JDBC_DRIVER)
conn = DriverManager.getConnection(DB_URL, USER, PASS)
The above method is creating the exception "Cannot load connection class because of underlying exception: com.mysql.cj.core.exceptions.WrongArgumentException:Malformed database URL, failed to parse the main URL sections."
I dont understand why it is trying to connecting to mysql
Has anyone faced similar issue?
How do i solve it?