springboot 在idea中实现热部署
来源:互联网 发布:nba2konline考辛斯数据 编辑:程序博客网 时间:2024/06/05 18:01
SpringBoot的web项目,在每一次修改了java文件或者是resource的时候,都必须去重启一下项目,这样的话浪费了很多的时间,实现了热部署,在每一次作了修改之后,都会自动的重启
第一步:引入热加载的插件,springboot 1.3开始就有的
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency>
project 中添加spring-boot-maven-plugin,主要在eclipse中起作用,idea不需要加此配置,springboot 项目的话,应该是有此配置,加里面的内容即可。
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <fork>true</fork> </configuration> </plugin> </plugins></build>
第二部 : idea设置(14版本)
1、点击: file ,Settings ,Build ,Execution,Deplment
然后记得apply,ok。
2、组合键:Shift+ALT+Ctrl+/ ,选择“Registry”,回车,找到“complier.automake.allow.when.app.running”
注意:
因为我的idea是14版本,有的15版本或者是更高的在compiler 里面是这样的:
,然后快捷键是Ctrl + Shift +A ,一样找到complier.automake.allow.when.app.running,点击勾选即可。
第三部: 如果你用的浏览器和我的一样,那么就禁用缓存
按F12(更多工具—->开发者工具),找到network,勾选Disable Cache。
亲测有效。
另外,如果是eclipse的话,直接在pom.xml文件当中添加:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency>
即可,亲测有效
以上文章转载自 http://www.jianshu.com/p/9d87de712279
阅读全文
0 0
- springboot 在idea中实现热部署
- SpringBoot项目在IntelliJ IDEA中实现热部署
- SpringBoot项目在IntelliJ IDEA中实现热部署
- SpringBoot项目在IntelliJ IDEA中实现热部署
- SpringBoot项目在IntelliJ IDEA中实现热部署
- SpringBoot项目在intellij idea中实现热部署
- SpringBoot项目在IntelliJ IDEA中实现热部署
- SpringBoot项目在IntelliJ IDEA中实现热部署
- SpringBoot项目在IntelliJ IDEA中实现热部署
- 关于SpringBoot在idea中实现热部署
- SpringBoot项目在IntelliJ IDEA中实现热部署
- SpringBoot项目在IntelliJ IDEA中实现热部署
- idea中springboot实现热部署
- IntelliJ IDEA中实现SpringBoot热部署
- Springboot idea中实现热部署
- idea+springboot实现热部署
- IDEA 实现 SpringBoot 热部署
- IDEA+Springboot+devtools实现热部署
- 【网络流二十四题 最小路径覆盖问题】【DAG 最小路径覆盖->最大流】
- 区间DP的学习(持续更新)
- PHP判断是否是微信打开, 浏览器打开
- nowcoder 东北林业大学第12届ACM校赛(低年级组)-A+B
- 注册;;手机号和密码正则验证
- springboot 在idea中实现热部署
- 单点登录解释
- pandas 选取子集的操作
- pat1006. Sign In and Sign Out (25)
- linux ls 命令
- 《Go web编程》ChitChat论坛
- shell_检查磁盘剩余空间
- 普元 EOS Platform V7 NUI 示例demo源码下载及部署方式,为NUI开发提供参考
- Go语言之JSON处理