1.POM依赖

<!-- Springboot 热部署 -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <optional>true</optional>
        </dependency>

重启项目后生效,IDEA中可能不生效

2.解决方法

setting – compiler 将 Build project automatically 勾选上

IDEA中Spring热部署

 

查找registry,可以使用ctrl+shirt+alt+/,弹出框后下拉找到 compiler.automake.allow.when.app.running 勾选上即可IDEA中Spring热部署

相关文章:

  • 2021-05-23
  • 2021-06-24
  • 2021-11-26
  • 2021-04-15
  • 2021-05-30
  • 2021-06-29
  • 2022-12-23
猜你喜欢
  • 2021-06-13
  • 2022-01-12
  • 2021-07-22
  • 2022-01-04
  • 2021-11-25
  • 2021-07-24
  • 2021-07-05
相关资源
相似解决方案