热部署 简单步骤: 加入以下两个配置在Pom中,并且打开eclipse自动编译的设置,因为热部署是监听已经编译的文件    

 

 

<!-- 热部署 -->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <optional>true</optional>
            <scope>true</scope>
        </dependency>

 

<plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <!-- 没有该配置,devtools 不生效 -->
                    <fork>true</fork>
                </configuration>
                
            </plugin>
        </plugins>

Maven springboot 热部署

相关文章:

  • 2021-06-20
  • 2021-07-20
  • 2021-11-10
猜你喜欢
  • 2021-12-12
  • 2021-08-15
  • 2021-05-23
  • 2021-09-25
  • 2021-05-03
  • 2021-06-16
相关资源
相似解决方案