Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Note about JDBC driver #304

Merged
merged 2 commits into from
Mar 3, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions docs/usage/database_containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ Examples/Tests:

As long as you have TestContainers and the appropriate JDBC driver on your classpath, you can simply modify regular JDBC connection URLs to get a fresh containerized instance of the database each time your application starts up.

_N.B: TC needs to be on your application's classpath at runtime for this to work_
_N.B:_
* _TC needs to be on your application's classpath at runtime for this to work_
* _For Spring Boot you need to specify the driver manually `spring.datasource.driver-class-name=org.testcontainers.jdbc.ContainerDatabaseDriver`_

**Original URL**: `jdbc:mysql://somehostname:someport/databasename`

Expand Down Expand Up @@ -112,4 +114,4 @@ and will be able to override server settings when the container starts.
VirtuosoContainer provides access to the SPARQL service URL
```java
String sparqlServiceUrl = ((VirtuosoContainer)container).getSparqlUrl();
```
```