1、在pom.xml文件中添加:
-
<dependency>
-
<groupId>org.springframework.boot</groupId>
-
<artifactId>spring-boot-devtools</artifactId>
-
<optional>true</optional>
-
</dependency>
2、勾选eclipse Project --->Build Automatically
3、在application.properties文件(没有就创建一个)中添加:
spring.devtools.restart.enabled:true
博客介绍了Spring Boot热部署的配置步骤。首先在pom.xml文件添加spring-boot-devtools依赖,接着勾选eclipse的自动构建选项,最后在application.properties文件中添加热部署启用配置,若文件不存在则需创建。
1301

被折叠的 条评论
为什么被折叠?



