pom配置

<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-devtools</artifactId>
			<optional>true</optional>
</dependency>
<plugins>
    <plugin>
            <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <mainClass>com.example.demo.DemoApplication</mainClass>
                    <fork>true</fork>
            </configuration>
     </plugin>
</plugins>

application.yml配置

spring:
  devtools:
         restart:
           enabled: true

开启idea自动make功能

CTRL + SHIFT + A –> 查找make project automatically –> 选中

springboot热部署配置

CTRL + SHIFT + A –> 查找Registry –> 找到并勾选compiler.automake.allow.when.app.running

springboot热部署配置

相关文章:

  • 2022-12-23
  • 2021-08-12
  • 2021-08-24
  • 2021-12-15
  • 2021-09-11
  • 2021-07-07
  • 2022-01-15
猜你喜欢
  • 2022-02-15
  • 2021-05-18
  • 2021-12-28
  • 2021-12-08
  • 2021-08-15
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案