首页 > 其他分享 >Idea中springboot项目实现热加载

Idea中springboot项目实现热加载

时间:2023-02-18 15:23:48浏览次数:28  
标签:springboot spring boot Idea Build 加载

1,pom引入依赖

<!--热加载-->
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <optional>true</optional>
</dependency>

2,File -> settings -> Build,Execution,Deployment -> Compiler
勾选 Build project automatically.
完成。

其他:
1,idea版本2022.2.4
2,修改后会有1-2S的延迟进行重新运行代码。

标签:springboot,spring,boot,Idea,Build,加载
From: https://www.cnblogs.com/lihenhao/p/17132680.html

相关文章