Spring-boot devtool工具的配置

首先要在pom.xml中引入依赖


            org.springframework.boot
            spring-boot-devtools
            true

并增加配置项


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

接着修改配置

Spring-boot devtool工具的配置_第1张图片
Paste_Image.png

再接着修改 Maintenance
command + alt + shift + /

Spring-boot devtool工具的配置_第2张图片
Paste_Image.png

重新加载工程即可

你可能感兴趣的:(Spring-boot devtool工具的配置)