1、pom.xml中添加:
<!--spring boot热部署--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency>
2、设置IDE,idea ,File->Settings-> Build-Execution-Deployment -> Compiler 勾选 Build Project Automatically.
3、ctrl + shift + alt + /,选择Registry,勾上 Compiler autoMake allow when app running
4、可以换值测试了