idea配置SpringBoot热部署
来源:互联网 发布:沙巴克传奇有哪些端口 编辑:程序博客网 时间:2024/06/05 16:13
鉴于每次修改代码都需要启动Tomcat,就在想有没有好的方式,解决这一问题。果然,是有的….
1.打开左上角 File > settings > Preferences > Compiler , 勾选 Build project automatically
2.添加Maven依赖
<!--springboot 配置热部署--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <version>1.5.8.RELEASE</version> <optional>true</optional> </dependency> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <!--打开热部署--> <configuration> <fork>true</fork><!--该项必须配置--> </configuration> </plugin> </plugins> </build>
3.按照图片配置Google浏览器 F12 打开。
最后重启idea,修改Controller或者页面代码,保存之后。发现不用重启服务器,也会产生效果。
阅读全文
1 0
- idea配置SpringBoot热部署
- springboot 热部署 idea
- idea springboot 热部署
- springBoot idea 热部署
- idea springBoot 热部署
- IDEA Springboot Tomcat热部署
- idea+springboot+freemarker热部署
- idea+springboot实现热部署
- IDEA 实现 SpringBoot 热部署
- idea springboot现实热部署
- SpringBoot热部署配置
- springboot热部署配置
- 【系统学习SpringBoot】springBoot +IDEA 热部署
- IDEA热部署配置
- Intellij IDEA SpringBoot项目热部署解决方案
- 设置springboot IDEA热部署环境
- Idea中Springboot开启热部署方法
- springboot开启热部署之Idea&Gradle
- 设计模式-包装模式(代理模式、适配器模式、外观模式)
- Codeforces Round #442 (Div. 2) E. Danil and a Part-time Job【线段树+dfs序】
- arm汇编—str指令
- iPhone X 的凹槽 和 iOS 11 中一些相关 CSS 属性
- Failed to read auto-increment value from storage engine
- idea配置SpringBoot热部署
- Java小代码(可直接用)
- Dubbo-SPI
- Caused by: org.apache.ibatis.builder.BuilderException: Error resolving class . Cause: org.apache.iba
- Node.js学习笔记(1)
- js学习
- dataguard日常操作
- mysql命令大全(速成版)
- DNX SDK版本 “dnx-clr-win-x86.1.0.0-beta5”无法安装