使用方式一
在pom.xml文件添加依賴包:
<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>
運行方法二
如果使用的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的時候,也能進行熱部署
視頻地址: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.html
Jar包下載工具地址:
jar 包下載
http://mvnrepository.com/
https://jar-download.com
http://www.mvnjar.com/
myeclipse導入外部jar包
https://jingyan.baidu.com/article/11c17a2c290124f446e39d0b.html
Build-Compiler-Build project automatically ctrl+shift+A或ctrl+shift+alt+/ 搜索 Registry,找到compiler.automake.allow.when.app.running,開啟此功能;
