Spring devtools in action
- 1 minutes read - 83 wordsI thought it was every easy to setup and use it using STS and gradle. The actual story is not so. I changed my settings followed Developing with Spring Boot and some suggestions here in stackoverflow, however liveload and autorestart don’t work.
After several rounds of trial, I noticed spring boot dashboard. I start my application from there, liveload and autorestart work now.
developmentOnly("org.springframework.boot:spring-boot-devtools")
#application.properties
spring.devtools.restart.poll-interval=2s
spring.devtools.restart.quiet-period=1s
spring.devtools.restart.enabled=true
# Thymeleaf
spring.thymeleaf.cache = false
#FreeMarker
spring.freemarker.cache = false
#Groovy
spring.groovy.template.cache = false