2019-02-27-idea下的配置springboot的热加载

idea下配置springboot热加载

1.添加pom依赖

1
2
3
4
5
6
<!-- SpringBoot自带热加载开发工具 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
</dependency>

2. 添加配置

打开 File –> Settings –> Build-Execution-Deployment –> Compiler,将Build project automatically.勾上。

post-idea-setting-1

3 .

快捷键 ctrl + alt + shift + / 打开 Maintenance 找到 Registry...,将 其中的 compiler.automake.allow.when.app.running勾上。

post-idea-setting-2

post-idea-setting-3

打赏
  • 版权声明: 本博客所有文章除特别声明外,著作权归作者所有。转载请注明出处!

扫一扫,分享到微信

微信分享二维码
  • © 2020 John Doe
  • Powered by Hexo Theme Ayer
  • PV: UV:

请我喝杯咖啡吧~

支付宝
微信