Springboot 热部署

做法很简单,在pom.xml中新增加一个依赖就行了

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


重启测试

posted @ 2018-06-27 21:02  王某人i  阅读(160)  评论(0编辑  收藏  举报