idea配置springBoot项目热加载

1.在application.properties中禁用模板引擎缓存

比如freemarker:spring.freemarker.cache=false

2.在pom.xml中添加依赖

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

3.修改IEDA设置

1)打开 Settings --> Build-Execution-Deployment --> Compiler,将 Build project automatically.勾上

2)Ctrl+Shift+A来打开Registry...,将 其中的compiler.automake.allow.when.app.running勾上。

3)重启idea

现在你就不必每次都手动的去点停止和启动了。

posted @ 2018-09-27 16:45  brx_blog  阅读(252)  评论(1编辑  收藏  举报