1、pom.xml文件中添加

       <!-- 热部署开发工具 -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
        </dependency>

2、preference->Build,Execution,Deployment->Compiler  打开里面的: Build project automatically 

springboot配置idea 热部署

 

 

 3、开启项目运行时自动生成

ctrl + shift + a(windows系统),

command+shift+alt+/(mac系统)

搜索命令:registry => 勾选compiler.automake.allow.when.app.running

springboot配置idea 热部署

springboot配置idea 热部署

 

 最后 关闭IDEA重启,才能生效

 

 

 

 

 

 

 

 

 

相关文章:

  • 2021-07-27
  • 2021-09-07
  • 2022-01-13
  • 2021-08-15
  • 2021-09-24
  • 2021-09-25
  • 2021-07-06
猜你喜欢
  • 2021-08-12
  • 2021-08-24
  • 2021-12-15
  • 2021-09-11
  • 2021-11-02
  • 2021-07-27
相关资源
相似解决方案