Idea spring boot, modify html, etc., take effect immediately without restarting

Introduce dependencies directly in pom

<dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
        <optional>true</optional>
</dependency>

Set the following two items (if the first item has been set, directly set the second item)

1) “File” -> “Settings” -> “Build,Execution,Deplyment” -> “Compiler”,选中打勾 “Build project automatically” 。

2) Combination key: "Shift+Ctrl+Alt+/", select "Registry", select and tick "compiler.automake.allow.when.app.running"

Guess you like

Origin blog.csdn.net/qq_41454044/article/details/100540165