Bootstrap

开启热部署

1先去你要使用的工程添加依赖:

<dependency>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-devtools</artifactId>
          <scope>runtime</scope>
          <optional>true</optional>
      </dependency>

2然后去父工程下添加插件:

 <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>

3开启自动编译
在这里插入图片描述

按快捷键并且去寻找蓝色选项打勾,可以不开,回头手动Ctrl+f9在这里插入图片描述

;