zoukankan      html  css  js  c++  java
  • idea 热部署Devtools

    开发时使用,生产环境关闭

    1.Adding devtools to your project

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


    2.Adding plugin to your pom.xml

    下段配置复制到项目pom.xml文件或者父类总工程的pom.xml中

        <plugins>
          <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <configuration>
              <fork>true</fork>
              <addResources>true</addResources>
            </configuration>
          </plugin>
        </plugins>

    3.Enabling automatic build

    在idea中做如下设置

    File -> Settings(New Project Settings->Settings for New Projects) ->Complier

    下面项勾选

    1. Automatically show first error in editor
    2. Display notification on build completion
    3. Build project automatically
    4. Compile independent modules in parallel

    4.Update the value of

    在idea中,键入如下快捷键,使得idea允许热部署:

    键入Ctrl + Shift + Alt + / ,(如果是mac,则快捷键是:Command + Shift + Alt + / )打开Registry,勾选:

    1. compiler.automake.allow.when.app.running
    2. actionSystem.assertFocusAccessFromEdt

    5.重启IDEA

  • 相关阅读:
    2017-3-7 leetcode 66 119 121
    2017-3-6 leetcode 118 169 189
    2017-3-5 leetcode 442 531 533
    c++ std
    2017-3-4 leetcode 414 485 495
    2017-3-3 leetcod 1 35 448
    想做手游
    编程规范
    1165: 零起点学算法72——首字母变大写
    1164: 零起点学算法71——C语言合法标识符(存在问题)
  • 原文地址:https://www.cnblogs.com/suhaha/p/14628994.html
Copyright © 2011-2022 走看看