https://www.cnblogs.com/lspz/p/6832358.html 热部署
springboot提供了devtools;
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<!-- optional=true,依赖不会传递,该项目依赖devtools;
之后依赖myboot项目的项目如果想要使用devtools,需要重新引入 -->
<optional>true</optional>
<scope>true</scope>
</dependency>
idea:
1.设置idea默认自动编译
File-->setting--->Build,Execut, Deployment --->Compiler-->勾选Build Project automatically
2.开启项目运行时自动build
在打开的页面上快捷键ctrl + shift + a 搜索命令:registry –> 勾选compiler.automake.allow.when.app.running*