Relative Content

Tag Archive for javaspring-boothibernate

Configuring Java Spring boot for testing w/ H2 and running w/ MySQL

I am setting up a microservice using Java Spring Boot. The application runs in a Docker container and connects to a MySQL database on the local machine. For testing purposes, I want to avoid the overhead of MySQL and use an H2 in-memory database for unit tests instead.

Configuring Java Spring boot for testing w/ H2 and running w/ MySQL

I am setting up a microservice using Java Spring Boot. The application runs in a Docker container and connects to a MySQL database on the local machine. For testing purposes, I want to avoid the overhead of MySQL and use an H2 in-memory database for unit tests instead.