We will learn how to run a Spring Boot microservice inside a Docker container
In a previous post we learned how to install Docker and how to run a Java Hello Word inside the Docker container. Now we will learn how to run a Spring Boot microservice application within Docker.
The first thing we are going to do is define the dependencies we need. Spring Boot requires at least these dependencies:
org.springframework.boot:spring-boot-starter-web
org.springframework.boot:spring-boot-starter-test
#microservice #spring boot #docker