SpringBoot热部署

  1. 添加pom依赖

    <dependency>
    	<groupId>org.springframework.boot</groupId>
    	<artifactId>spring-boot-devtools</artifactId>
    </dependency>
    
  2. 打开idea ,File->Settings-> Build-Execution-Deployment -> Compiler 勾选 Make Project Automatically

  3. 按Shift+Ctrl+A,输入“registry”找到“Registry...”
    在出现的新窗口中找到compiler.automake.allow.when.app.running并勾选

  4. 重启idea