Skip to content

Commit

Permalink
Seems like Spring Boot issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mihhail-lapushkin authored and rnorth committed Mar 3, 2017
1 parent 0bd0c2f commit 932a60b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/usage/database_containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ Examples/Tests:
### JDBC URL

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_
* _JDBC driver needs to be set to `org.testcontainers.jdbc.ContainerDatabaseDriver`_
* _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

0 comments on commit 932a60b

Please sign in to comment.