<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-devtools --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <version>2.3.4.RELEASE</version> </dependency>
在maven依赖中引入以上代码能够实现热部署。此依赖出处在maven的中心库中。能够百度maven查询最新版本。spring
方法一:经过Ctrl加f9实现热启动也就是热部署。maven
方法二:经过对IDEA的设置实现前提是必需要有依赖。如图蓝色地方所示;spring-boot
接下来进入setting要作的是搜索compiler将自动编译勾选上(Build project automatically)ui
接下来使用Ctrl加上shift加上Alt加上/四个键子同时按下去出现下图提示选择reqistry3d
点击进去找到以下图蓝色的两个参数由于这里是有过修改的因此会在最上面。code