spring boot热部署

1、在pom文件中增加如下内容

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

2、修改的代码需要重新编译,

build-->Recompile 或 build-->Rebuild Project

posted @ 2016-11-13 22:46  puroc  阅读(192)  评论(0编辑  收藏  举报