idea配置热部署
作者:
嗷嗷叫的多多 | 来源:发表于
2020-06-30 23:12 被阅读0次
- pom.xml中添加依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<scope>true</scope>
</dependency>
- pom.xml中配置热部署
<!--热部署配置-->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<!--fork : 如果没有该项配置,肯定devtools不会起作用,即应用不会restart -->
<fork>true</fork>
</configuration>
</plugin>
- File --> Settings --> Build , Execution , Deployment --> Compiler --> Build project automatically 勾选然后保存
- CTRL+ALT+SHIFT+/ 组合键打开 Maintenance窗口选择Registry... ,找到compiler.automake.allow.when.app.running选项勾选
https://blog.csdn.net/qq_41771222/article/details/82623619
本文标题:idea配置热部署
本文链接:https://www.haomeiwen.com/subject/bixqqktx.html
网友评论