2018年04月04日 10:10:22 pj小小码农 阅读数:2072spring
版权声明:本文为博主原创文章,未经博主容许不得转载。 https://blog.csdn.net/qq_20989105/article/details/79813413app
只要在pom文件中添加下面代码段便可eclipse
<!-- 热部署 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <optional>true</optional> <scope>true</scope> </dependency> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <!-- 没有该配置,devtools 不生效 --> <fork>true</fork> <addResources>true</addResources> </configuration> </plugin> </plugins> </build>
这样配置在myeclipse中已经能够实现热启动,可是在idea中配置好无效,下面须要修改idea中的两个配置maven
热部署无效问题已解决。ide