IntelliJ 2022 配置 Spring Boot Dev

2022-10-04  本文已影响0人  CHMAX

一、添加依赖

在项目 pom.xml 中添加依赖:

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

二、配置 IDEA

  1. Build,Execution,Deployment -> Compiler,勾选 Build project automatically
  1. Advanced Settings,勾选 Allow auto-make to start even if developed application is currently running
  1. 重启服务即可
上一篇 下一篇

猜你喜欢

热点阅读