Spring 서버 재시작 없이 반영
1. Dependency 추가
dependencies {
...
developmentOnly "org.springframework.boot:spring-boot-devtools"
...
}
2. application.yml 추가
devtools:
livereload:
enabled: true
restart:
enabled: true
thymeleaf:
cache: false
3. IntelliJ 설정
- Preferences(command + ,) → Compiler → Build project automatically 체크
- shift 연속 두번 → Registry → compiler.automake.allow.when.app.running 체크
반응형
'Project > Study' 카테고리의 다른 글
| Spring Boot 유효성 검사 (0) | 2021.07.20 |
|---|---|
| Spring Session + Redis (0) | 2021.07.19 |
| Spring Boot Annotation (0) | 2021.07.16 |
| WebSocket (0) | 2021.07.15 |
| API, Endpoint, REST API (0) | 2021.07.15 |
댓글