1. 修改pom.xml
- 在project->dependencies下添加spring-boot-devtools依赖
- 在project->build->plugins下添加spring-boot-maven-plugin插件 具体样例如下:
...
...
org.springframework.boot
spring-boot-devtools
true
true
org.springframework.boot
spring-boot-maven-plugin
true
...
2. 在设置界面中Compiler下,勾选“Build project automatically”
ctrl + shift + alt + / , Mac: command(⌘)+shift(⇧)+option(⌥)+/),选择Registry...,勾上 compiler autoMake allow when app running
