idea中配置Springboot热部署
2024-08-25 16:06:00
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” 。
3 Chrome禁用缓存
F12或者“Ctrl+Shift+I”,打开开发者工具,“Network” 选项卡下 选中打勾 “Disable Cache(while DevTools is open)”
最新文章
- hibernate简单注释(一.1)
- jquery Mobile弹出窗
- CCFlow SDK模式开发
- 提取html中的src 路径
- scrapy-redis使用详解
- ehcache集群的配置
- 百度地图 - demo
- Robot Framework自动化测试(一)---第一个脚本(转)
- [转]解决LinearLayout中控件不能居右对齐
- 使用curl操作InfluxDB
- 实例说明optimize table在优化MySQL时很重要
- Redis搭建多台哨兵
- python 堆排序
- CSS-蜂窝状展示区域(多个六边形)的一种实现方式
- 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
- C++实现的一些功能代码
- python六十四课——高阶函数练习题(三)
- MyBatis源码分析1 参数映射分析
- Linux下的Sreen命令使用
- ubuntu 16.04 的IP地址变更
热门文章
- [HEOI2016/TJOI2016]游戏 解题报告
- 编译安装Nginx和PHP(带编译mysql)
- linux/mac下一键删除下载失败的maven jar包
- Linux中OBS在Wayland环境下黑屏只显示鼠标的应对措施
- AOP实践--利用MVC5 Filter实现登录状态判断
- 若要允许 GET 请求,请将 JsonRequestBehavior 设置为 AllowGet
- 第二十九节,目标检测算法之R-CNN算法详解
- TestNg 9. 参数化测试-DataProvider参数化
- IDEA或者WebStorm关闭JS文件的黄色提示
- Going Home POJ - 2195 (最小费用最大流)