Spring Devtools restart로 AutoReload

kwlee·2021년 9월 13일
0

디펜던시 추가 (gradle 기준)

build.gradle 파일

dependencies {	
	developmentOnly('org.springframework.boot:spring-boot-devtools')
}

application.properties 설정

spring.devtools.restart.enabled = true

Intellij를 사용

  1. Intellij의 file > settings > build,execution,deployment > compiler에 있는 build project automatically를 체크

  2. Intellij에서 SHIFT+CTRL+A를 누르고 registry를 입력한 뒤, compiler.automake.allow.when.app.running을 체크

  3. intelliJ 버전에 따라 file > settings > Advanced Settings > Allow auto-make to start even if developed application is currently running 체크

profile
안녕하세요.

0개의 댓글