当前位置:首页 > eclipse springboot 自动部署(修改页面后不用重启)的设置

eclipse springboot 自动部署(修改页面后不用重启)的设置

点击次数:2904  更新日期:2019-03-08

在pom中添加内容

image.png


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


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


然后勾上 project - build automatically

image.png