In addition to installing spring-boot-devtools, you also need to enable automatic build in IntelliJ.
spring-boot-devtools