Maven
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
IDEA
配置自动编译
配置注册
CMD+shift+a
,搜索registry
,设置如下:
参考
Intellij IDEA – Spring boot template reload is not working
来源:oschina
链接:https://my.oschina.net/u/168875/blog/2048649