After the IDEA springboot project to modify the file without having to restart (hot deployment)

When you want to debug springboot project, do not restart after modifying static resource files can use the following two steps to achieve their goals

1, directly incorporated in the dependent pom

org.springframework springloaded 1.2.6.RELEASE org.springframework.boot spring-boot-devtools 1.3.0.RELEASE true 2, provided the following two (the first item, such as a second set disposed directly)

1) "File" -> "Settings" -> "Build, Execution, Deplyment" -> "Compiler", select the tick "Build project automatically".

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

applivation run 前加 System.setProperty(“spring.devtools.restart.enabled”, “false”);

Guess you like

Origin blog.csdn.net/qq_35577329/article/details/89311792