IntelliJ IDEA uses spring-boot-devtools hot deployment invalid solution

add dependencies

<dependencies>
      
    <!-- 方便调试依赖 -->
    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
        <scope>runtime</scope>
    </dependency>

</dependencies>


<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <configuration>
                <fork>true</fork>
            </configuration>
        </plugin>
    </plugins>
</build>

Modify IDE configuration parameters

Mac shortcut key: shift+alt+command+/, select Registry

Window shortcut: Shift+Ctrl+Alt+/, select Registry

The test is successful, but when it's time to restart the code, it's very slow and not easy to use, you won't be able to stand it.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325022698&siteId=291194637