zoukankan      html  css  js  c++  java
  • Intellij IDEA 使用jrebel运行spring-boot并实现自动编译进行热部署

    在使用jrebel运行spring-boot的时候,会发现一个很棘手的问题,就是项目不能自动编译,不能自动编译就不能实现热部署。(使用jar包方式运行的时候) 
    那么我们就要解决自动编译的问题,首先:

    1、勾选上Build project automatically

    2、按组合键 Shift+Ctrl+Alt+/,选择Registry

    3、勾选上compiler.automake.allow.when.app.running

     

    4、使用jrebel debug模式重新运行你的项目,更改html或者类的时候,idea就会自动的编译了。

    5、jrebel 免费使用方法。

    MyJrebel

    登录这个网站,使用facebook 或者推特登录(需要翻墙),然后输入邮箱,会要求验证(登录邮箱验证,点击验证链接),在输入手机号,不需要验证手机号。之后会进入

    这样就可以无限使用啦,我申请的:

    0IzpECpNkaKHiREDgtR/jPKIHIV/TxQ5HDKB7eM+VYZD77KcR6/eDciaznbd8eiInRIrz0/5jeEBusPPhCgJtMY3tSVTygJAeA/yHGQUHcAaHs1z11SzuVkXgjprCbj5Z+5Qyw==

    备注:如果使用maven插件,则每次改动完项目之后,会自动重启。

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


  • 相关阅读:
    课堂作业04 2017.10.27
    课程作业 03 动手动脑 2017.10.20
    课程作业 03 2017.10.20
    HDU 3974 Assign the task
    POJ 2155 Matrix
    POJ 2481 Cows
    HDU 3038 How Many Answers Are Wrong
    CS Academy Array Removal
    POJ_1330 Nearest Common Ancestors LCA
    CF Round 427 D. Palindromic characteristics
  • 原文地址:https://www.cnblogs.com/jiafuwei/p/8493415.html
Copyright © 2011-2022 走看看