SpringBoot IDEA 设置热部署

不想你离开。 提交于 2019-12-09 16:18:37

1. 给pom.xml中添加依赖

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

2. 修改pom.xml中

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

3. 点开File --> setting --> Build,Execution,Deployment -->Compiler 勾选Build project automatically 第三张图 打开谷歌浏览器,按F12,出来开发者模式,选中Disable cache(while DevTools is open)

在这里插入图片描述
在这里插入图片描述在这里插入图片描述

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!