基于IDEA的SprintBoot热部署配置

引入maven

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <optional>true</optional>
        </dependency>

基于IDEA的SprintBoot热部署配置

然后 Shift+Ctrl+Alt+/,选择Registry
基于IDEA的SprintBoot热部署配置

ok了,重启一下项目,然后改一下类里面的内容,IDEA就会自动去make了。

修改Html后ctrl+s 内容依然没变,application.yml加上以下配置即可

spring:
  devtools:
      restart:
	    #需要实时更新的目录
        additional-paths: resources/**,static/**,templates/**