springboot如何实现热启动
更新:HHH   时间:2023-1-7


这篇文章给大家介绍springboot如何实现热启动,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。

热启动依赖

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

idea 默认不会进行自动编译,还需要设置 idea 自动编译

Settings>Compiler> 勾选 Build project automatically

shift+ctrl+alt+/ 打开 Registry 。勾选 compiler.automake.allow.when.app.running

关于springboot如何实现热启动就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。

返回编程语言教程...