IDEA SpringBoot 开启热部署

Idea springboot / spring cloud 开启热部署

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"
miaowing
A Javascript & Typescript developer
Posted on 2019-10-19

Share this post

Scan to open in WeChat

Stay tuned

  • Add me on WeChat

  • Subscribe to my newsletter