热部署

热部署(别名热启动),其实很多地方都在使用也非常流行且好用(如springboot,jfinal,ssm),pom.xml中加入

<!-- springboot热部署 devtools 依赖包. -->
<dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
        <optional>true</optional>
        <scope>true</scope>
</dependency>
<build>
        <plugins>
            <!-- 这是spring boot devtool plugin -->
            <plugin>
                <!-- spring热部署 -->
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <fork>true</fork>
                </configuration>
            </plugin>
        </plugins>
</build>

评论

暂无评论