docker-mysql-spring-boot-example icon indicating copy to clipboard operation
docker-mysql-spring-boot-example copied to clipboard

Spring Boot on Docker connecting to MySQL Docker container

Results 4 docker-mysql-spring-boot-example issues
Sort by recently updated
recently updated
newest added

------------------------------------------------------------------------------- Test set: com.techprimers.jpa.springdatajpahibernateexample.SpringDataJpaHibernateExampleApplicationITTests ------------------------------------------------------------------------------- Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 7.968 sec

How to run this project on docker and hit the endpoints ?

When I have mentioned docker image in datasource url in application.properties, build is failing as tests are failing with exception java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:125) at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:108) at...

The last step (Step 5) mentions to run the docker image, but the command to run the image is wrong. Run the Docker image (users-mysql) created in #4. docker build...