Springboot在idea中配置热部署

1.在pom.xml文件中添加如下配置


    org.springframework.boot
    spring-boot-devtools
    
    true

2.继续在pom.xml中添加如下插件


    org.springframework.boot
    spring-boot-maven-plugin
    
        
        true
        
        true
    

3.开启idea的自动build项目设置 file->build,...->Complier->将project automatically勾上

Springboot在idea中配置热部署_第1张图片

4.做如下设置 Help->Find Action 打开搜索框,并搜索Registry,选择检索列表第一项

Springboot在idea中配置热部署_第2张图片

Springboot在idea中配置热部署_第3张图片

5.找到compiler.automake.allow.when.app.running

Springboot在idea中配置热部署_第4张图片

 

 

你可能感兴趣的:(spring,boot,java,SpringBoot)