https://github.com/reljicd/spring-boot-empty-mvc-thymeleaf-template
Empty Spring Boot MVC Thymeleaf template for quick bootstrapping of Spring Boot projects.
https://github.com/reljicd/spring-boot-empty-mvc-thymeleaf-template
h2 h2-database java spring spring-boot spring-data-jpa spring-data-rest thymeleaf
Last synced: about 1 year ago
JSON representation
Empty Spring Boot MVC Thymeleaf template for quick bootstrapping of Spring Boot projects.
- Host: GitHub
- URL: https://github.com/reljicd/spring-boot-empty-mvc-thymeleaf-template
- Owner: reljicd
- Created: 2017-05-30T12:45:47.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-30T12:46:52.000Z (about 9 years ago)
- Last Synced: 2025-03-26T10:36:30.707Z (about 1 year ago)
- Topics: h2, h2-database, java, spring, spring-boot, spring-data-jpa, spring-data-rest, thymeleaf
- Language: Shell
- Homepage:
- Size: 49.8 KB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Boot Empty MVC Thymeleaf Template
## About
This is an empty Spring Boot MVC Thymeleaf template for quick bootstrapping of Spring Boot projects.
It was made using Spring Boot, Thymeleaf, Spring Data JPA, Spring Data REST. Database is in memory H2.
## How to run
You can run the application from the command line with Maven.
Or you can build a single executable JAR file that contains all the necessary dependencies, classes, and resources, and run that.
Go to the root folder of the application and type:
```
./mvnw spring-boot:run
```
Or you can build the JAR file with
```
./mvnw clean package
```
Then you can run the JAR file:
```
java -jar target/empty-template-0.0.1-SNAPSHOT.jar
```
The application should be up and running within a few seconds.
Go to the web browser and visit `http://localhost:8190/home`
In `/src/main/resources/application.properties` file it is possible to change
the port number.
## Helper Tools
### HAL REST Browser
Go to the web browser and visit `http://localhost:8190/`
You will need to be authenticated to be able to see this page.
### H2 Database web interface
Go to the web browser and visit `http://localhost:8190/h2-console`
In field **JDBC URL** put
```
jdbc:h2:mem:empty_template_db
```
In `/src/main/resources/application.properties` file it is possible to change both
web interface url path, as well as the datasource url.