idea2020配置springboot热部署超全步骤以及安装JRebel插件
這個是idea2020版本
1.項目中pom.xml中添加依賴和插件
依賴
插件
<plugins><plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><configuration><fork>true</fork> <!-- 如果沒有該配置,devtools不會生效 --></configuration></plugin></plugins>2.設(shè)置自動編譯
File-Settings-Compiler-Build Project automatically
3.Ctrl+Shift+Alt+/
打開后找到Compiler autoMake allow when app running
4.設(shè)置項目的啟動加載
Run->Edit Configuration
找到spring boot下的 On ‘Update’ action 和 On frame deactivation ,選擇 Update classes and resources
這樣就部署成功了
如果還不可以那就再安裝個插件JRebel
安裝:
在線GUID地址:在線生成GUID
生成地址:https://www.guidgen.com/
如果失效刷新GUID替換就可以了
打開jrebel 如下所示面板,選擇Connect to online licensing service
第一行粘貼GUID
第二行輸入郵箱
這樣修改完Java代碼后,就可以通過快捷鍵 Ctrl+shift+F9 而不再需要重啟站點這樣繁瑣浪費時間的操作了
設(shè)置成離線工作模式
點擊之后變成
這樣就完成了
啟動項目如下,第二哥就是debug運行。
總結(jié)
以上是生活随笔為你收集整理的idea2020配置springboot热部署超全步骤以及安装JRebel插件的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: VSCode终端面板里文件怎么跳转? V
- 下一篇: Windows下安装Mysql5.7.2