This post walks you through the steps of creating a Hello World example with Spring Boot and JSP.
Spring Boot View Templates Example Series: - Spring Boot Hello World Example with FreeMarker - Spring Boot Hello World Example with Thymeleaf - Spring Boot Hello World Example with JSP
What you'll build
What you'll need
- Docker CE 18+
Controller maps HTTP Requests with
/hello request to
name is a query string parameter of
Model object passes value to
hello view (
Prepare Dockerfile for Java/Spring Boot application
Start your application and infrastructure via Docker Compose. Make sure your local Docker is running and your bash console is at the springboot-examples project root directory.
docker-compose -f docker-compose-view.yaml up --renew-anon-volumes jsp-helloworld
You may also like the Hello Spring MVC Series: - Spring MVC 4 Hello World Example with XML Configuration, Maven and JSP - Spring MVC 4 Hello World Example with XML Configuration, Maven, and Thymeleaf