https://github.com/andbin/spring-boot2-pebble-basic-demo
A basic demo project that shows how to use Pebble Templates with Spring Boot 2
https://github.com/andbin/spring-boot2-pebble-basic-demo
apache-maven demo-application java java-11 spring-boot2 thymeleaf
Last synced: 4 months ago
JSON representation
A basic demo project that shows how to use Pebble Templates with Spring Boot 2
- Host: GitHub
- URL: https://github.com/andbin/spring-boot2-pebble-basic-demo
- Owner: andbin
- License: mit
- Created: 2022-08-13T13:30:01.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-03T12:55:28.000Z (over 2 years ago)
- Last Synced: 2025-03-12T10:45:58.236Z (about 1 year ago)
- Topics: apache-maven, demo-application, java, java-11, spring-boot2, thymeleaf
- Language: Java
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README




# Spring Boot 2 – Pebble Basic Demo
This is a basic demo project that shows how to use **[Pebble Templates](https://pebbletemplates.io)** (a template engine for Java) with **[Spring Boot](https://spring.io/projects/spring-boot) 2**.
## 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-boot2-pebble-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 `SpringBoot2PebbleBasicDemoApp` 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.