Springboot项目自动加载设置

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”(自动编译)选项

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

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

posted @ 2019-08-05 17:02  萧余  阅读(1345)  评论(0编辑  收藏  举报