Trivial “Hello, World” web site with SpringMVC
Go to file
2023-07-25 20:58:08 +02:00
gradle/wrapper Spring Initializr 2023-07-25 20:58:08 +02:00
src Spring Initializr 2023-07-25 20:58:08 +02:00
.gitignore Spring Initializr 2023-07-25 20:58:08 +02:00
build.gradle Spring Initializr 2023-07-25 20:58:08 +02:00
gradlew Spring Initializr 2023-07-25 20:58:08 +02:00
gradlew.bat Spring Initializr 2023-07-25 20:58:08 +02:00
README.md Spring Initializr 2023-07-25 20:58:08 +02:00
settings.gradle Spring Initializr 2023-07-25 20:58:08 +02:00

HelloSpringMVC

Is a trivial “Hello, World” web site with SpringMVC.

This application is an outcome of this guide, which walks you through the process of creating a “Hello, World” web site with Spring. It serves a static home page and that will also accept HTTP GET requests at: http://localhost:8080/greeting. It will respond with a web page that displays HTML. The body of the HTML will contain a greeting: “Hello, World!”

You can customize the greeting with an optional name parameter in the query string. The URL might then be http://localhost:8080/greeting?name=User. The name parameter value overrides the default value of World and is reflected in the response by the content changing to “Hello, User!”

Spring Initializr

In VsCode press cmd+shif+p and type Spring Initilizr. Choose next dependencies:

  • SpringWeb
  • Thymeleaf
  • Spring Boot DevTools