1 pom.xml文件

热部署功能spring-boot-1.3开始有的

<!--添加依赖-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<!-- optional=true,依赖不会传递,该项目依赖devtools;之后依赖myboot项目的项目如果想要使用devtools,需要重新引入 -->
<optional>true</optional>
</dependency>

:project 中添加 spring-boot-maven-plugin,主要在eclipse中使用,idea中不需要添加此配置。

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
</configuration>
</plugin>
</plugins>
</build>

2 更改idea配置

  1) “File” -> “Settings” -> “Build,Execution,Deplyment” -> “Compiler”,选中打勾 “Build project automatically” 。

  2) 组合键:“Shift+Ctrl+Alt+/” ,选择 “Registry” ,选中打勾 “compiler.automake.allow.when.app.running” 。

Chrome禁用缓存

  F12或者“Ctrl+Shift+I”,打开开发者工具,“Network” 选项卡下 选中打勾 “Disable Cache(while DevTools is open)”

最新文章

  1. hibernate简单注释(一.1)
  2. jquery Mobile弹出窗
  3. CCFlow SDK模式开发
  4. 提取html中的src 路径
  5. scrapy-redis使用详解
  6. ehcache集群的配置
  7. 百度地图 - demo
  8. Robot Framework自动化测试(一)---第一个脚本(转)
  9. [转]解决LinearLayout中控件不能居右对齐
  10. 使用curl操作InfluxDB
  11. 实例说明optimize table在优化MySQL时很重要
  12. Redis搭建多台哨兵
  13. python 堆排序
  14. CSS-蜂窝状展示区域(多个六边形)的一种实现方式
  15. 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#39;groups)VALUES(&#39;1&#39;,&#39;hh&#39;,&#39;hh@163.com&#39;,&#39;Boss&#39;)&#39; at line 1
  16. C++实现的一些功能代码
  17. python六十四课——高阶函数练习题(三)
  18. MyBatis源码分析1 参数映射分析
  19. Linux下的Sreen命令使用
  20. ubuntu 16.04 的IP地址变更

热门文章

  1. [HEOI2016/TJOI2016]游戏 解题报告
  2. 编译安装Nginx和PHP(带编译mysql)
  3. linux/mac下一键删除下载失败的maven jar包
  4. Linux中OBS在Wayland环境下黑屏只显示鼠标的应对措施
  5. AOP实践--利用MVC5 Filter实现登录状态判断
  6. 若要允许 GET 请求,请将 JsonRequestBehavior 设置为 AllowGet
  7. 第二十九节,目标检测算法之R-CNN算法详解
  8. TestNg 9. 参数化测试-DataProvider参数化
  9. IDEA或者WebStorm关闭JS文件的黄色提示
  10. Going Home POJ - 2195 (最小费用最大流)