springboot项目中使用gradle管理项目时,采用热部署的方式加载项目,方便开发项目开发过程中代码的调试;
热部署的配置步骤:
1、build.gradle配置文件中添加如下配置:
implementation ‘org.springframework.boot:spring-boot-devtools’ //热加载
compile ‘org.springframework.boot:spring-boot-devtools’ //热加载
runtimeOnly ‘org.springframework.boot:spring-boot-devtools’ //热加载
2、intellj idea中配置
Ctrl+shift+alt+/
gradle 热部署配置springboot项目
gradle 热部署配置springboot项目
配置File–>settings–>compiler,
gradle 热部署配置springboot项目

相关文章:

  • 2022-12-23
  • 2021-05-16
  • 2021-12-28
  • 2021-12-08
  • 2021-05-18
  • 2021-08-15
  • 2022-02-15
  • 2022-12-23
猜你喜欢
  • 2021-07-27
  • 2021-10-22
  • 2022-12-23
  • 2021-06-07
  • 2022-01-05
  • 2021-10-19
相关资源
相似解决方案