Spring Boot熱部署(springloader)

使用方式一html

在pom.xml文件添加依賴包:java

<plugin>
                      <groupId>org.springframework.boot</groupId>
                      <artifactId>spring-boot-maven-plugin </artifactId>
                      <dependencies>  
                       <!--springloaded  hot deploy -->  
                       <dependency>  
                           <groupId>org.springframework</groupId>  
                           <artifactId>springloaded</artifactId>  
                           <version>1.2.7.RELEASE</version>
                       </dependency>  
                    </dependencies>  
                    <executions>  
                       <execution>  
                           <goals>  
                               <goal>repackage</goal>  
                           </goals>  
                           <configuration>  
                               <classifier>exec</classifier>  
                           </configuration>  
                       </execution>  
                       </executions>
                </plugin>

運行方法二spring

若是使用的run as – java application的話,那麼還須要作一些處理。 把spring-loader-1.2.7.RELEASE.jar下載下來,放到項目的lib目錄中,而後把IDEA的run參數裏VM參數設置爲: -javaagent:.\lib\springloaded-1.2.4.RELEASE.jar -noverify 而後啓動就能夠了,這樣在run as的時候,也能進行熱部署app

 

 

視頻地址:http://baidu.iqiyi.com/watch/01364273974728388232.html?&recFrom=site&list=1
博客:
https://www.cnblogs.com/a8457013/p/8065489.html
https://www.cnblogs.com/jiangbei/p/8439394.html
https://www.cnblogs.com/xiong233/p/6796847.htmleclipse

 

Jar包下載工具地址:maven

jar 包下載spring-boot

http://mvnrepository.com/
https://jar-download.com
http://www.mvnjar.com/
工具

 

myeclipse導入外部jar包ui

https://jingyan.baidu.com/article/11c17a2c290124f446e39d0b.htmlspa

 

 

Build-Compiler-Build project automatically  ctrl+shift+A或ctrl+shift+alt+/ 搜索 Registry,找到compiler.automake.allow.when.app.running,開啓此功能;

相關文章
相關標籤/搜索