config h2 jdbc:h2:tcp://localhost java code example
Example: connecting to h2 database from java
Connection conn = DriverManager.getConnection ("jdbc:h2:~/test", "sa","");
Connection conn = DriverManager.getConnection ("jdbc:h2:~/test", "sa","");