IDEA实现springboot项目的热部署
程序员文章站
2022-07-14 10:46:54
...
IDEA实现springboot项目的热部署
1、在项目的pom.xml文件中引入下面的依赖
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
2、打开File->Settings->Build,Execution,Deployment->Compiler,勾选Build project automatically,点击OK
3、快捷键Ctrl+Shift+Alt+/,选择Registry,勾选compiler.automake.allow.when.app.running,点击Close