热启动依赖

<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-devtools</artifactId>
</dependency>
登录后复制

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

Settings>Compiler> 勾选 Build project automatically

springboot怎么实现热启动-LMLPHP

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

springboot怎么实现热启动-LMLPHP

springboot怎么实现热启动-LMLPHP

以上就是springboot怎么实现热启动的详细内容,更多请关注Work网其它相关文章!

09-17 17:45