Java教程

SpringBoot 热部署设置

本文主要是介绍SpringBoot 热部署设置,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

第一步 添加依赖

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <scope>runtime</scope>
    <optional>true</optional>
</dependency>
<build>
  <plugins>
    <plugin>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-maven-plugin</artifactId>
      <configuration>
        <fork>true</fork>
        <addResources>true</addResources>
      </configuration>
    </plugin>
  </plugins>
</build>

第二步 设置idea配置

第三步 设置热部署等待编码时间

快捷键 Ctrl+Shift+Alt+/ 调出设置界面

idea注册设置

这篇关于SpringBoot 热部署设置的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!