├─bin
│ ├─main
│ │ ├─com
│ │ │ └─springbootrestapi
│ │ └─templates
│ └─test
│ └─com
│ └─springbootrestapi
├─gradle
│ └─wrapper
└─src
├─main
│ ├─java
│ │ └─com
│ │ └─springbootrestapi
│ └─resources
│ ├─static
│ └─templates
└─test
└─java
└─com
└─springbootrestapi
/static/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
Hello World!
</body>
</html>
gradle 설치
./gradlew
gradle 빌드
./gradlew build
gradle jar 파일로 빌드
./gradlew bootjar
실행
./gradlew run
mvn run
mvn spring-boot:run
spring:
thymeleaf:
cache: "false"
freemarker:
cache: "false"
mvc:
static-path-pattern: /static/**
devtools:
livereload:
enabled: "true"
config:
import: classpath:/config.yaml
logging:
level:
org:
springframework:
nodeValue: INFO
web: DEBUG