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
'general java' 카테고리의 다른 글
[springboot] mybatis (0) | 2016.01.12 |
---|---|
[mybatis] spring4에서 사용할 수 있는 ibatis 지원 (0) | 2016.01.12 |
[play1] It is indirectly referenced from required .class files (0) | 2015.12.23 |
[guava] Files.toString(), Files.hash 예제 코드 (0) | 2015.12.21 |
[Guava] Immutable Collection의 UnsupportedOperationException (0) | 2015.12.21 |