Spring Cloud 微服务分布式架构学习
记录一下自己学习Spring Cloud的过程~
热部署Devtools
1、Adding devtools to your project
在cloud-provider-payment8001模块的pom文件中增加devtools依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
2、Adding plugin to your pom.xml
在父工程的pom文件中添加
<build>
<!--<finalName>你的工程名</finalName>(单一工程时添加)-->
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
<addResources>true</addResources>
</configuration