Git Product home page Git Product logo

spring-boot2-thymeleaf-basic-demo's Introduction

Java 11 Spring Boot 2.7.15 Built with Apache Maven MIT License

Spring Boot 2 – Thymeleaf Basic Demo

This is a basic demo project that shows how to use Thymeleaf (a modern server-side template engine for Java) with 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

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-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 SpringBoot2ThymeleafBasicDemoApp 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. You should see a simple page showing some version informations.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.