2019独角兽企业重金招聘Python工程师标准>>>  
Spring Boot 入门小目标---先来试着热部署
这次写的主要就是 使用 springloaded 来实现 热部署。
很多时候,我们在修改和添加了新的方法或代码,都需要重启服务器。这样很麻烦,而且 不合理,所以用 热部署的方式还是很方便的,虽然 我也 不太懂 热部署 究竟有多好!

任何事情 都有 了解的过程,等实际用到了的时候,就真的知道 究竟 适合满足自己的需求了!
1、在pom.xml 中添加 springloaded 插件。
在pom.xml文件添加依赖包:
<!-- 构建节点. -->
<build><plugins><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.4.RELEASE</version></dependency>  </dependencies>  <executions>  <execution>  <goals>  <goal>repackage</goal>  </goals>  <configuration>  <classifier>exec</classifier>  </configuration>  </execution>  </executions></plugin></plugins>
</build>2、来让我们运行我们的项目:
第一种方式:使用spring-boot:run (使用maven项目的命令启动方式)
(声明:本人整理的内容和代码,同时也是在向各位前辈学习中,如果看过后有对你有帮助最好,如果有任何问题,请加我微信进行沟通 ,谢谢!)
