IDEA JRebel 实现热部署

1.下载插件安装https://plugins.jetbrains.com/idea/plugin/4441-jrebel-for-intellij

2. install plugin from disk

3. 获取激活码从这个网站上https://my.jrebel.com/.可以用 facebook,或者 twitter账号登录.

4. 激活插件 Help --> JRebel --> Activity.输入第三步中获得的激活码

5. 选中要热部署的工程View -->Tool Windows -->JRebel -->选中当前工程

6. 用 meavn 插件生成rebel.xml. pom.xml 文件中这样配置.进入工程所在的目录执行 mvn jrebel:generate 生成 rebel.xml 就可以快乐使用热部署了.

7. 更详尽的设置请参考官方文档https://zeroturnaround.com/software/jrebel/quickstart/intellij/#!/project-configuration

<build>
    <finalName>seckill</finalName>
      <plugins>
          <plugin>
            <groupId>org.zeroturnaround</groupId>
            <artifactId>jrebel-maven-plugin</artifactId>
            <version>1.1.7</version>
            <executions>
              <execution>
                <id>generate-rebel-xml</id>
                <phase>process-resources</phase>
                <goals>
                  <goal>generate</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
      </plugins>
  </build>
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容