IDEA 2021.3 version DevTools deployment failure problem solved

The Internet is good at copying. Now many articles are still copying the DevTools failure solution before Idea 2021.2 version. It is difficult to find after 2021.2. I also record the solution to avoid everyone stepping on the pit.

IDEA 2021.3 version configuration DevTools steps:

1. Import the jar package

<!-- hot deployment tool -->
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <scope>runtime</scope>
    <optional>true</optional>
</dependency>

2. Configure the compiler

Find "Compiler" under "Build, Execution, Deployment" and check "Automatically build projects". If necessary, it is recommended to check "Parallel compilation of independent modules"

3. Set up project build

Find "Compiler" in "Advanced Settings", check "The application developed immediately is currently running, also allow automatic make startup"

The above step was migrated here after Idea2021.2. Before Idea2021.2, you need to use the shortcut key shift+Ctrl+Alt+/, select Registry..., and set the compiler.automake.allow.when.app.running option Check it.

The position of the check box has changed, and many people just can't find this, so DevTools doesn't work.

After the above steps are set up, it is OK, try it out!

Guess you like

Origin blog.csdn.net/Asgard_Hu/article/details/122077844