python热部署_关于Spring Cloud 框架热部署的方法
1、在對應的pom.xml 文件中添加依賴
org.springframework.boot
spring-boot-devtools
true
2、注:project 中添加 spring-boot-maven-plugin,主要在eclipse中使用,idea中不需要添加此配置。【IDEA 忽略這個步驟哦(⊙o⊙)?】
org.springframework.boot
spring-boot-maven-plugin
true
3、更改idea配置
1) “File” -> “Settings” -> “Build,Execution,Deplyment” -> “Compiler”,選中打勾 “Build project automatically” 。
2) 組合鍵:“Shift+Ctrl+Alt+/” ,選擇 “Registry” ,選中打勾 “compiler.automake.allow.when.app.running” 。
4、Chrome禁用緩存【開發時打開】
F12或者“Ctrl+Shift+I”,打開開發者工具,“Network” 選項卡下 選中打勾 “Disable Cache(while DevTools is open)”
本文為博主原創文章,轉載請注明出處!
https://my.oschina.net/u/3375733/blog/
總結
以上是生活随笔為你收集整理的python热部署_关于Spring Cloud 框架热部署的方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: mysql 8.0远程连接_安装mysq
- 下一篇: websocket python爬虫_p