首页 > 编程语言 > 详细

idea中设置springboot热部署

时间:2018-05-25 11:41:10      阅读:193      评论:0      收藏:0      [点我收藏+]

在idea中设置springboot热部署,项目修改的时候不用手动重启应用

1,pom中添加依赖

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

 

2.ctrl+alt+s 打开设置 File | Settings | Build, Execution, Deployment | Compiler,选中打勾 “Build project automatically”

技术分享图片

 

3.“Shift+Ctrl+Alt+/”(Windows) 、“Shift+CMD+Alt+/” (MAC平台),选择 “Registry” ,选中打勾 “compiler.automake.allow.when.app.running” 。

技术分享图片

 

idea中设置springboot热部署

原文:https://www.cnblogs.com/cralor/p/9087592.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!