spring boot热部署

1.2.7热部署

我们在开发中反复修改类、页面等资源,每次修改后都是需要重新启动才生效,这样每次启动都很麻烦,浪费了大量的时间,能不能在我修改代码后不重启就能生效呢?可以,在pom.xml中添加如下配置就可以实现这样的功能,我们称之为热部署。

    <dependency> 

        <groupId>org.springframework.boot</groupId> 

        <artifactId>spring-boot-devtools</artifactId> 

    </dependency> 

赶快试试看吧,是不是很爽。

原文地址:https://www.cnblogs.com/honghong75042/p/10774620.html