To enable hot deployment, you need to add poM plug-in, set the setting, configure Registry, and restart IDEA.

Pom adds plug-ins

<! <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional> </dependency> </dependencies> <! -- Build configuration --> <build> <! <plugins> <plugins> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <! <configuration> <fork>true</fork> </configuration> </plugin> </plugins> </build>Copy the code

Setting set


Registry configuration


Restart the IDEA

Make sure you reboot. This is very important.