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. 张小龙宣布微信小程序1月9日发布,并回答了大家最关心的8个问题
  2. CSS、j&#39;s单行、多行文本溢出显示省略号
  3. MySQL数据表操作
  4. anguar.js tutorial demo
  5. 【WEB】初探Spring MVC框架
  6. Atitit j2ee5 jee5 j2ee6 j2ee7 jee6 jee7 新特性
  7. iOS 活动图 流程图
  8. [Android Pro] 临时关闭selinux模式 setenforce 0
  9. Json数据格式事例查看
  10. Servlet中的请求转发和重定向
  11. Oracle中删除重复的经典方案
  12. 修改ie版本的注册表webbroswer
  13. Java 理论与实践: 非阻塞算法简介--转载
  14. linux网络编程常用头文件
  15. Map 根据value 排序
  16. Android事件分发机制详解
  17. 暑假练习赛 003 F Mishka and trip
  18. free 或delete后指针怎么样了
  19. JAVA基础复习与总结&lt;一&gt; 对象与类的概念_内部类_继承与多态
  20. JAVA反射机制及理解

热门文章

  1. JAVA从本机获取IP地址
  2. 智能手环体验:UP24
  3. Struts2——(3)ValueStack(值栈)
  4. onload 事件
  5. DragControl
  6. 基于JUnit和Ant测试程序正在运行使用Kieker(AspectJ)监测方法
  7. DDD实战9 经销商领域上下文
  8. cacti由snmp监控带宽
  9. python3使用多代理访问网站
  10. HDU 2845 Beans(dp)