2.添加 插件(plugin)到 项目的 pom.xml 配置文件中org.springframework.boot spring-boot-devtoolsruntime true
3.开启 IDEA 的自动编译 4.允许 Idea 编译自启 4.1新版 4.2旧版org.springframework.boot spring-boot-maven-plugin2.3.5.RELEASE true true
Ctrl+Shift+Alt+/,然后选择 Registry …,最后将 compiler.automake.allow.when.app.running 选项勾上



