SpringBoot热部署
1.在<dependency>中添加<optional>属性并设置为true
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> </dependency>
在<build>中添加属性<fork>并设置为true
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <fork>true</fork> </configuration> </plugin> </plugins> </build>
完成以上配置就OK了,适用于eclipse。如果是IDEA,还需要配置一下信息: