1, IDEA arrangement
File—Settings—Compiler
2. Ctrl+Shift+Alt+? Select Registry…
3、选择compier.automake. allow.when.app.running
It will turn blue when opened again
4. SpringBoot project configuration
Add dependencies to SpringBoot applications that require hot deployment
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>
There is no need to specify a version, there will be a default version
5. Configure SpringBoot’s Maven plug-in
6. Configure the change update strategy of SpringBoot application
Select Update classes and resources and click Apply.
If the computer configuration is not high, it is not recommended to configure hot deployment.