Springboot+IDEA代码热部署

1.导入devtools依赖


            org.springframework.boot
            spring-boot-devtools
            runtime
            true
        

2.pom文件中添加插件配置‘


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

3.IDEA配置

Springboot+IDEA代码热部署_第1张图片

4.使用快捷键:ctrl+shift+Alt+/

Springboot+IDEA代码热部署_第2张图片

将如上所示打勾即可,重启IDEA,之后修改代码,不用重启项目,只需浏览器重新访问即可。

 

你可能感兴趣的:(SpringBoot)