1.spring:

    dubug模式启动,

2.springboot

1. pom.xml 修改

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

在pom.xml文件中, 加入此配置, 可以更新后台修改的静态文件

2. file->settings

【JAVA】idea热部署,后台自动更新代码spring、springboot

在上图中, 将红色圈中的部分, 选中即可

3. shift + ctrl + alt + /

【JAVA】idea热部署,后台自动更新代码spring、springboot

通过以上快捷键, 会弹出Maintenance弹窗, 选择第一个

【JAVA】idea热部署,后台自动更新代码spring、springboot

如此设置之后, 编码的时候, 怎一个爽子了得啊.

程序跑起来之后, 不用老是重启重启重启了. 写的差不多了, 刷新下界面, 就ok了, 如果再来一个双屏显示器, 会让你享受编码的.

转载来自:http://www.cnblogs.com/elvinle/p/7989119.html

亲测可用

相关文章: