idea设置热部署功能(通俗易懂) 1. Adding devtools to your project(module中) <!--热部署--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional> </dependency> 2. Adding plugin to your pom.xml(父工程中) <!--热部署--> 注意是你的父工程POM下 <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <fork>true</fork> <addResources>true</addResources> </configuration> </plugin> </plugins> </build> 3. Enabling automatic build 4. Update the value of CTRL+SHIFT + ALT + / 打开上面的这个界面,选择 registry 主要是打开 compiler.aotomake.allow.when.app.running 5. 重启idea