SpringBoot是允许项目自动加载的,但是需要在pom文件映入依赖库

1.导入依赖库

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <version>2.1.6.RELEASE</version>
</dependency>

2.需要在idea里进行进行编译设置,勾选 “Build project automatically”(自动编译)选项

Springboot项目自动加载设置

3.按下“  SHIT+CTRL+ALT+/ ”  进入配置注册选项,勾选如下图选项然后进行保存即可

Springboot项目自动加载设置

Springboot项目自动加载设置

接下来,你每次保存之后,,项目会进行自动编译运行

相关文章:

  • 2021-07-19
  • 2021-10-08
  • 2021-10-11
  • 2021-11-19
  • 2021-12-11
  • 2022-12-23
  • 2021-11-23
猜你喜欢
  • 2021-11-25
  • 2021-07-04
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
相关资源
相似解决方案