Springboot項目基于Devtools實現(xiàn)熱部署步驟詳解
1.在pom.xml(如果是多模塊,則此pom根據(jù)需要可設為具體模塊)文件中添加
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional></dependency>
2.在pom.xml(如果是多模塊,則此pom為父工程文件)加入插件
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration><fork>true</fork><addResources>true</addResources> </configuration> </plugin> </plugins></build>
3.IDEA設置自動編譯
4.在IDEA任意界面使用快捷鍵ctrl+shif+Alt+/打開如下菜單,點擊第一個選項(1.Registry...)
選擇后會出現(xiàn)如下子菜單,勾選compiler.automake.allow.when.app.running與actionSystem.assertFocusAccessFromEdt
5.重啟IDEA。
以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持好吧啦網(wǎng)。
相關文章:
1. Python編寫nmap掃描工具2. Java向Runnable線程傳遞參數(shù)方法實例解析3. python 爬取嗶哩嗶哩up主信息和投稿視頻4. ASP.NET MVC前臺動態(tài)添加文本框并在后臺使用FormCollection接收值5. 10個提供免費PHP腳本下載的網(wǎng)站6. php5.6不能擴展redis.so的解決方法7. Java 基于UDP協(xié)議實現(xiàn)消息發(fā)送8. PHP設計模式(四)原型模式Prototype實例詳解【創(chuàng)建型】9. PHP獲取時間戳等相關函數(shù)匯總10. 如何基于python3和Vue實現(xiàn)AES數(shù)據(jù)加密
