idea jrebel 热部署搭建

文章目录
  1. 1. 总结

springboot 项目是不是每次改完都需要重新启动,影响效率,于是搭建热部署,不用重启,提高开发效率

  1. 安装插件jrebel
  2. idea 插件市场搜索[colorg]JRebel for IntelliJ[/colorg] [colory]下载安装可能有点慢,重启后直接激活即可,激活不了自行百度[/colory]
  3. 组合键 Shift+Ctrl+Alt+/,选择Registry,勾选上compiler.automake.allow.when.app.running
  4. Preferences | Build, Execution, Deployment | Compiler,勾选Automatically show first error editor,Build project automatically
  5. View | Tool Windows | JRebel ,勾选第一个,此时会在 Resources 目录下创建一个rebel.xml 文件
  6. 使用jrebel debug模式重新运行你的项目,更改html或者类的时候,idea就会自动的编译了

总结

如果不行的话,请重复已上步骤试试,特别是第5,还有其它问题,请留言哦!

评论