반응형

왜 써야하나

스프링 개발 중, 서버 재기동이 번거롭죠. 개발 중에 수정한 클래스와 반영한 내용을 자동으로 반영해주는 방법입니다.

 

 

의존성 추가

dependencies {
    runtime("org.springframework.boot:spring-boot-devtools")
}
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <scope>runtime</scope>
    <optional>true</optional>
</dependency>

 

환경설정

spring.devtools.livereload.enabled=true
spring:
    devtools:
        livereload:
            enabled: true

 

인텔리J 설정

  • File > Settings( Ctrl + Atl + S ) > Build, Execution, Deployment > Compiler 이동
  • [Build project automatically] 클릭하여 체크처리 (True)
반응형

WRITTEN BY
데르벨준

,