# Thymeleaf 'Hello Word' Application

In 
Java
Published 2022-12-03

For creating a Hello World Application using Spring Boot, Thymeleaf and Maven, we need to

  • Create a simple Spring Boot Application with Maven
  • Create the Thymeleaf directory structure as below

... and here you must be careful to the "static" and "templates" directory. The static directory contains directories for styles, pictures, icons and Javascripts. The templates directory contains the Thymeleaf templates.

Here it is a "static" and a "templates" example (during the development):

  • Create the index.html page (the template for Hello World HTML page):

  • Create the Spring Boot Controller:

As you can see a data model is created in order to pass data from the controller to the view.

Now you can run the application, and you can see in the browser: