Miaow

Creator of @nest-cloud and @i5sing. Senior Software Engineer at @YanRongTech. Master of JavaScript, TypeScript. ❤️ Open Source <3.

Powered by Meow
Forked from github/personal-website
辽ICP备16013530号

Home

IDEA SpringBoot 开启热部署

Published 2019-01-14

Idea springboot / spring cloud 开启热部署

配置 pom.xml 文件

添加依赖

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

添加插件

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

配置 idea ide

修改配置

  • 勾上 Build, Executing, Deployment / Compiler / Make project automaticly
  • 按住 shift + option + command + / ,选择 Registry,勾上 "compiler.automake.allow.when.app.running"