springboot 热部署

时间:2023-03-08 18:55:46

1 pom文件添加

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional><!-- optional=true,依赖不会传递,该项目依赖devtools;之后依赖myboot项目的项目如果想要使用devtools,需要重新引入 -->
</dependency>

2 idea配置

springboot 热部署

3 option+commond+shift+/

springboot 热部署

springboot 热部署