반응형
https://mgyo.tistory.com/389 spring-boot-devtools
- Spring Boot를 사용하는 데 있어서 좀 더 편리한 추가 도구 세트가 포함되어 있는 라이브러리
개발 기능 시간을 단축시켜 주는데 도움
1. 오픈소스 빌드 자동화 툴(Gradle 혹은 Maven) 내에 라이브러리를 추가
# Gradle
dependencies {
compileOnly("org.springframework.boot:spring-boot-devtools")
}
<Automatic Restart>
서버의 내용을 수정하면 재 기동해야 하는 문제에 대해서 자동으로 서버를 재 기동을 하도록 도와주는 기능
1. application.properties 파일 내에 설정
- spring.devtools.restart.enabled # Automatic Restart 사용 여부
- spring.devtools.restart.additional-exclude # Automatic Restart내에서 제외할 파일 경로
spring:
devtools:
# Auto Restart
restart:
enabled: true
additional-exclude: static/**,public/**
# OR
spring.devtools.restart.enabled = true
spring.devtools.restart.additional-exclude = static/**,public/**
2. 환경설정
1. IntelliJ - Preferencs…
2. 컴파일러 - ‘프로젝트 자동 빌드’ 체크 - ‘확인’
1. IntelliJ - Preferencs…
2. 고급설정 - ‘개발된 애플리케이션이 현재 실행 중인 경우에도 auto-make가 시작되도록 허용' 체크 - ‘확인’
반응형
'spring boot' 카테고리의 다른 글
빌드관리도구(Maven / Gradle) (0) | 2023.01.25 |
---|---|
정적 컨텐츠 / 템플릿 엔진 / API (0) | 2023.01.25 |
프로젝트 빌드,실행 (0) | 2023.01.25 |
View 환경설정(Thymeleaf) (0) | 2023.01.25 |
프로젝트 생성(start.spring.io) (0) | 2023.01.25 |