An open API service indexing awesome lists of open source software.

https://github.com/andbin/spring-boot3-thymeleaf-basic-demo

A basic demo project that shows how to use Thymeleaf with Spring Boot 3
https://github.com/andbin/spring-boot3-thymeleaf-basic-demo

apache-maven demo-application java java-17 spring-boot3 thymeleaf

Last synced: 2 months ago
JSON representation

A basic demo project that shows how to use Thymeleaf with Spring Boot 3

Awesome Lists containing this project

README

        

![Java 17](https://img.shields.io/badge/Java-17-cd853f "Java 17")
![Spring Boot 3.0.5](https://img.shields.io/badge/Spring%20Boot-3.0.5-6db33f "Spring Boot 3.0.5")
![Built with Apache Maven](https://img.shields.io/badge/Built%20with-Apache%20Maven-f76504 "Built with Apache Maven")
![MIT License](https://img.shields.io/badge/License-MIT-1081c1 "MIT License")

# Spring Boot 3 – Thymeleaf Basic Demo

This is a basic demo project that shows how to use **[Thymeleaf](https://www.thymeleaf.org)** (a modern server-side template engine for Java) with **[Spring Boot](https://spring.io/projects/spring-boot) 3**.

## License

This project is released under the **MIT License**, a very *permissive* free software license.

See the full text of the license: **[LICENSE.txt](LICENSE.txt)**

## How to build and run the application

You can build and run the application in different ways (depending on your environment and/or IDE).

#### 1) Using Maven to build a “fat” JAR that is easy to run

From command line (in project's main directory):
* run `mvn package`
* go into the `target/` directory
* run `java -jar spring-boot3-thymeleaf-basic-demo.jar`

#### 2) Using Maven to directly build&run the application

From command line (in project's main directory):
* run `mvn spring-boot:run`

#### 3) Using the Eclipse IDE

* import the project (“File” -> “Import...” then “Existing Maven Projects” etc...)
* build the project (if “Build Automatically” is not active)
* locate the `SpringBoot3ThymeleafBasicDemoApp` class and then “Run As” -> “Java Application”

**Note**: other IDEs (e.g. NetBeans, IntelliJ IDEA) can also be used, the import procedure may be very similar.

## How to use the application

Once the application is running, point your preferred browser to [http://localhost:8080](http://localhost:8080). You should see a simple page showing some version informations.