Springboot add hot deployment

  1. Pom file
    1. Add dependent
    2. Add plug-ins
  2. Modify idea, start automatic deployment
<!--配置热部署-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <optional>true</optional>
            <scope>true</scope>
        </dependency>
<plugin>
                <!--热部署配置-->
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <!--fork:如果没有该项配置,整个devtools不会起作用-->
                    <fork>true</fork>
                </configuration>
            </plugin><!---->

Guess you like

Origin www.cnblogs.com/rainbowbridge/p/12157159.html