Skip to content

torreswoo/template-SpringBoot

Repository files navigation

Torres SpringBoot Project template

$ make compose.all # start all 
or
$ docker run -it -p 8080:8080 gcr.io/torrestemplate/template-springboot:1.0.0-SNAPSHOT

Start project

  • build, run
$ make compose.all # start all 

$ make mycli
$ make compose
$ ./gradlew build
$ ./gradlew bootrun

Docker & GCP

# 
$ gcloud auth configure-docker
$ PUSH=true ./build_docker_image.sh

# details
$ docker build -t template-springboot:1.0.0-SNAPSHOT .
$ docker tag template-springboot:1.0.0-SNAPSHOT gcr.io/torrestemplate/template-springboot:1.0.0-SNAPSHOT
$ docker push gcr.io/torrestemplate/template-springboot:1.0.0-SNAPSHOT
$ docker pull  gcr.io/torrestemplate/template-springboot:1.0.0-SNAPSHOT
$ docker run -it -p 8080:8080 gcr.io/torrestemplate/template-springboot:1.0.0-SNAPSHOT

dashboard

- http://localhost:8080/          # Swagger
- http://localhost:8080/intro     # intro page (Thymeleaf)
- http://localhost:8080/dashboard # App Dashboard
- http://localhost:8080/console   # H2 web console

springboot-jolokia-dashboard

Configuration files

path file info
.gitignore ---
build.gradle Gradle build 파일
/gradle/querydsl.gradle Gradle QueryDSL 설정파일
/public/* web static resource : HTML, CSS, javascript
/config/application.yml profile, DB설정파일
/src/main/generated/* Q파일
/src/main/resources/application.properties
/src/main/resources/logback.groovy logging 설정 - Groovy
/src/main/resources/logback.xml logging 설정 - XML
/src/main/resources/ data.sql, schema.sql, import.sql datasource initial SQL
/src/main/resources/templates/ Template engine view - Thymeleaf

Library

name version download link
SpringBoot v1.5.9 https://projects.spring.io/spring-boot/
Lombok v1.16.8 https://projectlombok.org/
jQuery v1.12.1 http://jquery.com
jQuery UI v1.12.1 https://jqueryui.com
Bootstrap v3.3.7 https://getbootstrap.com/docs/3.3/
Font Awesome v4.7.0 http://fontawesome.io/
Highcharts v6.0.4 (2017-12-15) https://www.highcharts.com/download
jolokia v1.3.7 https://jolokia.org/download.html
springfox v2.6.0 http://springfox.github.io/springfox/
H2 v1.4.190 http://www.h2database.com/
Spring Data JPA 1.11.9 https://projects.spring.io/spring-data-jpa
QueryDSL v4.1.4 http://www.querydsl.com/

Details

SpringBoot | Actuator

- http://localhost:8080/docs
- http://localhost:8080/mappings

SpringBoot | Admin

- http://localhost:8080

SpringBoot | remote shell

$ ssh user@localhost -p 2000 
$ dashboard 
$ metrics
$ thread top

jolokia

logging

  • logback

Swagger & springfox

Datasource

  • H2
  • MySQL

JPA & QueryDSL

  • SpringData JPA
  • QueryDSL