IDEA 2021.2.2设置自动热部署

1.导入包坐标

        
            org.springframework.boot
            spring-boot-devtools
            runtime
            true
        

2.pom.xml添加piugins插件并打开开关

    
      
        org.springframework.boot
        spring-boot-maven-plugin
        2.2.2.RELEASE
        
          true
          true
        
      
    

3.设置idea自动编译

File ->Settings ->Build, Execution, DeploymentAdvanced Setttings  ->  Compiler

IDEA 2021.2.2设置自动热部署_第1张图片

4.Advanced Setttings设置

File ->Settings ->Advanced Setttings

IDEA 2021.2.2设置自动热部署_第2张图片

5.重启IDEA

你可能感兴趣的:(intellij-idea,ide)