Idea 热部署 流程

1 pom.xml中添加依赖

        <!--热启动依赖-->
        <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>

2.idea set中设置开启file-setting中

3.Alt+ctrl+shift+/ 开启registry

4.重启IDEA

猜你喜欢

转载自blog.csdn.net/qq_34359363/article/details/105263672