zoukankan      html  css  js  c++  java
  • Intellij IDEA 2018.2.2 SpringBoot热启动 (Maven)

    一、IDEA 工具配置

    1. 打开IDEA 设置界面,选择编译,按图打勾。

    image

    2 . 然后 Shift+Ctrl+Alt+/,选择Registry 

    image 

    3 . compiler.automake.allow.when.app.running   选项打勾

    image

    二 、代码中的pom.xml 

    1 . 配置项maven 依赖

    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <optional>true</optional></dependency> //该配置必须
    

    2 .  开启热启动部署

    <build>
    <plugins>
    <plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    </plugin>
    </plugins></build>

    热启动配置完毕,启动项目,修改代码,然后刷新就看到变化了! (因为编译,可能要稍等几秒才有变化)

  • 相关阅读:
    SQL Server 2005 中 Cross join & Cross Apply & Outer Apply 的区别
    How to install Database using commandline prompt
    Get SQL Server default collation
    Shrink DB and Log
    Visual C++ Debugging: Why does program work in debug mode, but fail in release mode?
    使用Windows的SHFileOperation外壳函数实现文件操作
    2 types of C++ compiler guards
    LUA中的基本函数库
    Ruby 数组操作方法(转)
    ruby中的yield的概念
  • 原文地址:https://www.cnblogs.com/iampkm/p/9552759.html
Copyright © 2011-2022 走看看