06_springboot热部署

1.在pom.xml添加相应的依赖

<!--支持热部署-->
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <optional>true</optional> <!-- 这个需要为 true 热部署才有效 -->
</dependency>

2.重启并测试

posted @ 2020-11-24 09:23  脑袋有点大  阅读(39)  评论(0编辑  收藏  举报