在pom文件中添加依赖(optional-->true表示覆盖父级项目中的引用):

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

</ dependency>

在springboot的配置文件中添加如下配置

Spring boot 热加载

重启IDEA即可


Spring boot 热加载


springboot因为是以jar包运行的 所以需要进行编译

相关文章:

  • 2022-12-23
  • 2021-07-20
  • 2022-12-23
  • 2021-09-15
  • 2022-03-07
  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-27
  • 2021-05-19
  • 2021-10-15
  • 2021-09-22
  • 2022-12-23
  • 2021-12-10
相关资源
相似解决方案