A simple web app shows the default configuration for Spring MVC with Thymeleaf with Spring Boot, and a little rest endpoint with Spring Rest Controller
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You must have installed on your machine
- JDK 1.8 or later
- Maven 3 or later
- Git 2 or later
git clone https://github.com/eddy16/simple-springboot-webapp.git
cd simple-springboot-webapp
mvn clean install
mvn spring-boot:run
There are two URL mapped, the first one is a simple rest endpoint and you can get with:
curl localhost:8080/hello/yourname
Or simply put it in the browser.
The another one is a simple hello world page built with Thymeleaf, just put the url in the browser:
localhost:8080
- Spring Boot - The official Spring Boot Documentation
- Building an Application with Spring Boot - A official example