Spring Boot의 devtools를 사용할 때, 항상 코드를 재시작하지 않는 환경이 있을 수 있다. 이 때는 spring.devtools.restart.enabled의 속성 값을 사용한다. 

if (phase != PHASE.Local) {
    System.setProperty("spring.devtools.restart.enabled", "false");

}


출처 

https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-devtools.html




Posted by '김용환'
,