Skip to content

Instantly share code, notes, and snippets.

@sebfoucault
Last active February 24, 2017 10:09
Show Gist options
  • Save sebfoucault/9ee845010902802ef912bc3cfbd69284 to your computer and use it in GitHub Desktop.
Save sebfoucault/9ee845010902802ef912bc3cfbd69284 to your computer and use it in GitHub Desktop.
Copy-and-paste this in Tomcat context.xml for a H2 datasource configuration to H2 server
<Resource name="jdbc/DefaultDB"
auth="Container"
type="javax.sql.DataSource"
username="sa"
password="sa"
driverClassName="org.h2.Driver"
url="jdbc:h2:tcp://localhost/~/test"
maxActive="8"
maxIdle="4"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment