IDEA使用Jrebel运行SpringBoot项目
IDEA 中配置 Jrebel
1、打开IDEA Preferences 界面,Compiler—> 勾选 Build project automatically。
2、按组合键 Shift+Ctrl+Alt+/,填入 Registry,点击 Registry。
勾选上文本框 compiler.automake.allow.when.app.running
使用Jrebel 运行SpringBoot项目
1、创建 SpringBoot 项目,启动类文件 右击用 Rebel Run ‘DemoApplication’ 运行。
2、验证 Jrebel 热部署
添加 DemoController 控制类
@RestController
public class DemoController {@GetMapping("test")public String test(){return "hello world!";}
}
访问 http://localhost:8081/test ,输出:hello world!
添加一个新方法,保存之后,不用重启项目。稍等一会,控制台输出更改的文件。
访问 http://localhost:8081/test1 ,输出 :hello,java!,热部署成功。
IDEA使用Jrebel运行SpringBoot项目相关推荐
- 运行springboot项目时报错: Description: The bean ‘userServiceImpl‘ could not be injected as a
运行springboot项目时报错:Description:The bean 'userServiceImpl' could not be injected as a 'com.tang.servic ...
- IDEA如何运行SpringBoot项目(超详细截图)
[]:hello你好我是辰兮,很高兴你能来阅读,昵称是希望自己能不断精进,向着优秀程序员前行! 博客来源于项目以及编程中遇到的问题总结,偶尔会有读书分享,我会陆续更新Java前端.后台.数据库.项目案 ...
- VS Code运行SpringBoot项目
介绍 Visual Studio Code 下载地址 https://code.visualstudio.com/ 前端开发工具,相比webstorm而言,要轻量不少,主要是还轻量免费 运行sprin ...
- 使用Maven来运行Springboot项目
1.如果Eclipse安装了Eclipse-STS插件,Eclipse-STS(Spring Source Tool)插件,那么可以直接使用该插件运行Springboot项目,直接右击main方法,找 ...
- idea community社区版 运行springboot项目
idea community社区版 运行springboot项目 今天我的idea旗舰版30天试用期到了,之前下载了一个社区版的,想用他打开调试一下项目. 直接导入项目后没有报错,但是运行之后没有反应 ...
- Linux 后台运行 springboot项目
Linux 后台运行 springboot项目 命令如下: nohup java -jar lihaozhe.jar >/dev/null 2>&1 & nohup jav ...
- linux 运行springboot 项目 (后台运行,并且打印实时日志)
首先 利用 maven 将springboot 项目 打成 jar包 maven 打包插件: <build><plugins><plugin><groupId ...
- Linux 下配置JDK 并运行springboot项目进行访问 Tomcat的安装
前言 记忆++1 步骤 一.JDK安装 我们开发java程序必须要的环境! 1.下载JDK rpm.去oralce 官网下载即可!(百度jdk即可) 2.安装java环境 检测当前系统是否存在java ...
- 在云服务器上持续运行springboot项目
操作步骤: 1.使用maven clean命令清除原来的jar包 2.使用mvn package命令把项目打包成jar包 3.在target目录下找到jar包 4.使用XShell和XFtp完成上传. ...
最新文章
- php fastcgi配置_IIS7.5配置php(FastCGI)- 自动配置
- IAP超级详解,偷懒了,不用自己去翻译了
- springMVC 使用WebApplicationContext获取ApplicationContext对象
- android 背景图太大,android – 背景图片需要太长时间才能画(Canvas)Jerky Sprites ……?...
- 【深度学习】Transformer解决计算机视觉问题(卷中卷)
- MySQL 错误 #1113
- C#中的三种委托方式:Func委托,Action委托,Predicate委托
- Java Servlet(三):Servlet中ServletConfig对象和ServletContext对象
- C# js调用winform方法,C# JS与winform通信
- Mysql count() 语句
- linux脚本是什么语言,Linux学习之Shell脚本语言的优势是什么?
- 百度计算机视觉暑期实习面经(成功上岸!已拿offer)
- 《推荐系统笔记(一)》线性回归方法的数学推导
- 电脑课装b专用代码_JavaScript无形装X,最为致命
- 10 种最流行的 Web 挖掘工具
- PDF.js插件 | 在线PDF阅读插件,支持手机在线阅读
- redis的hset hget mset mget是什么
- MFC无边框窗体设置窗口圆角,并且绘制边框
- Systemverilog always_comb 过程块
- Excel 甘特图 一行公式 极简版