1.pom.xml 中添加依赖
<!--开发环境热部署插件--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency>
2. 修改idea build project automatically (勾选)
file->settings->build,execution,deployment -> compile
3. alt+shift+ctrl+/ 设置register (勾选)
compiler.automake.allow.when.app.running