必须写的
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
至于其他的,什么fork
啦,什么build project automatically
,还有什么compiler automake allow when app running
,全都不需要设置。
想想按照那个思路设置,每次保存文件,都要重新加载加载自己编写的代码,在demo演示时看不出什么,当工程大了之后,没保存一次重新加载一次还是很崩溃的。
所以,加入maven依赖后,撒欢的修改代码,确认代码修改ok可以测试了,build > Recompile 'HelloController.java' Ctrl + Shift + F9
手动编译,这时候才来触发热部署。