spring boot项目集成热部署

pom添加热部署依赖

<!--热部署-->
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-devtools</artifactId>
			<scope>runtime</scope>
			<optional>true</optional>
		</dependency>

修改编译配置

在这里插入图片描述

按两下shift搜索registry勾选图示选项

在这里插入图片描述
在这里插入图片描述

后续只要代码有改变 按CTRL+s即可重新热部署

猜你喜欢

转载自blog.csdn.net/shark_chili3007/article/details/121454748