SpringBoot热部署

1.pom.xml添加

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

2…pom.xml中的plugins修改成如下

  <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <fork>true</fork>
                </configuration>
            </plugin>

        </plugins>

3.Ctrl+Shift+Alt+/选择“Registry
在这里插入图片描述
4.勾上compiler.automake.allow.when.app.running 然后关闭
在这里插入图片描述
5.ok

posted @ 2019-05-09 19:29  drl_blogs  阅读(147)  评论(0编辑  收藏  举报