编程知识 cdmana.com

Springboot hot load

be based on IDEA Hot loading of .

stay pom.xml Add the corresponding dependency in the

<!--  Thermal loading -->
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <optional>true</optional>
    <!--<scope>true</scope>-->
</dependency>

stay pom.xml Add the corresponding plug-in in

<plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    <configuration>
        <fork>true</fork><!--  If there is no such configuration , Hot deployed devtools Don't take effect  -->
 </configuration>
</plugin>

Set up IDEA

image.png

ctrl+shit+alt+/ Shortcut key and click Registry
mac Shortcut key command+shit+option+/ Shortcut key and click Registry

image.png

Find the corresponding Key And check the

image.png

Follow the steps above to open IDEA Development spring Hot load function .

版权声明
本文为[Poetry in the wind]所创,转载请带上原文链接,感谢

Scroll to Top