SpringBoot project hot deployment configuration

1, IDEA arrangement

File—Settings—Compiler
Insert image description here

2. Ctrl+Shift+Alt+? Select Registry…

Insert image description here

3、选择compier.automake. allow.when.app.running

Insert image description here
It will turn blue when opened again
Insert image description here

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
Insert image description here

5. Configure SpringBoot’s Maven plug-in

Insert image description here

6. Configure the change update strategy of SpringBoot application

Insert image description here
Select Update classes and resources and click Apply.
Insert image description here
If the computer configuration is not high, it is not recommended to configure hot deployment.

Guess you like

Origin blog.csdn.net/qq_42042158/article/details/121647697