idea 安装和配置jrebel
来源:互联网 发布:大连育知同创怎么样 编辑:程序博客网 时间:2024/05/17 20:02
安装jrebel,按ctrl+alt+s,弹出Settings,然后在plugins中搜索jrebel,安装即可
安装完成后,激活和配置在help标签中. (配置也可以在settings中选择)
jrebel的先告一段落。接下来我们起一个简单的spring boot应用。
pom.xml文件
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.skyon</groupId> <artifactId>ActivityMQTest</artifactId> <version>1.0-SNAPSHOT</version> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>1.5.2.RELEASE</version> </parent> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> </dependencies></project>
SampleController.java文件
package cn.sut.controller;/** * Created by sut on 2017/3/26. */import org.springframework.boot.*;import org.springframework.boot.autoconfigure.*;import org.springframework.stereotype.*;import org.springframework.web.bind.annotation.*;@Controller@EnableAutoConfigurationpublic class SampleController { @RequestMapping("/") @ResponseBody String home() { System.out.println("xxx"); return "Hello World!"; } public static void main(String[] args) throws Exception { SpringApplication.run(SampleController.class, args); }}
- 我们现在先启动一下,看一下情况。点击jrebel的图标运行SampleController运用。
- 访问
localhost:8080/
的地址看下, 后台打印的是xxx
,我们改成zzz然后在编译一下(CTRL+F9)。然后发现已经可以变成了zzz
。所以到此可以认为是配置成功了。
出现的一些问题:
- jrebel启动的时候,报错
Bean factory must allow eager class loading
, 这个是jrebel的bug,需要搜索jrebel-nightly的build版本,下载后是zip,解压之后,在jrebel的设置中advance中,设置jrebel使用的jar包即可。 - jrebel热部署不生效
- 最好在view->Tool Window->Jrebel显示出来,勾选要使用jrebel的项目,然后在显示。这时候在启动过程中就会直接说jrebel监视了哪些目录,并且在src下生成rebel.xml文件。
- 如果是web项目,需要配置tomcat,然后选择要deploy的应用。然后在jrebel中勾选这个项目,就会去监视target的目录。
- 修改之后手动按Ctrl+F9进行重新编译,会自动reload并且有提示。还可以改自动编译,并且在注册中改,这个没有测试。
0 0
- idea 安装和配置jrebel
- [idea]idea配置Jrebel
- IntelliJ IDEA 配置tomcat和jrebel
- Intellij IDEA 安装和配置jrebel进行项目的热部署
- jrebel试用申请及eclipse下jrebel安装和配置
- IDEA插件JRebel安装配置与破解激活详细教程
- IDEA插件JRebel安装配置与破解激活详细教程
- Idea配置并破解jrebel
- Idea 配置并破解jrebel
- IDEA 上jrebel的安装
- Intellij IDEA 安装jrebel插件
- 在Idea上安装JRebel
- Idea安装jrebel破解步骤
- IDEA下安装JRebel详解
- 热部署插件JRebel在Eclipse和Intellij IDEA中的安装与配置(非破解,官方正版永久使用)
- 热部署插件JRebel在Eclipse和Intellij IDEA中的安装与配置(非破解,官方正版永久使用)
- intellij idea 热部署 jrebel 详细配置
- intellij idea 热部署 jrebel 详细配置
- 使用3dsMaxSDK重写Execute函数达到简单反混淆
- fragment的管理
- Linux下摄像头+OpenCV+zbar的编译+例程
- C++中地址和引用的异同
- redis可视化客户端工具TreeNMS
- idea 安装和配置jrebel
- websphere PCF 监控MQ
- c++ bitset 位集
- n皇后
- redis安装、配置与使用
- Class GraphObject
- Android四种启动模式
- 一次前端实习笔试后感想
- Android Activity 的四种启动模式