1.添加依赖

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

2. Compiler,勾选 “Make project automatically”

springboot设置devtools热部署(修改代码后自动运行)

3.快捷键  Shift+Ctrl+Alt+/ ,选择 “Registry” ,选中打勾 “compiler.automake.allow.when.app.running”

springboot设置devtools热部署(修改代码后自动运行)

4.设置缓存为falsespringboot设置devtools热部署(修改代码后自动运行)

 

相关文章:

  • 2021-11-22
猜你喜欢
  • 2021-09-22
  • 2021-12-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案