springboot-idea-热部署

 

 

ctrl + shift + a 搜索命令:registry –> 勾选compiler.automake.allow.when.app.running*

 

 

 

 

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <optional>true</optional>
    <scope>true</scope>
</dependency>

eclipse 不用配置只添加依赖既可
<!--热部署-->
<plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    <configuration>
        <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
    </configuration>
</plugin>

 







posted @ 2020-01-20 10:33  jentary  阅读(194)  评论(0)    收藏  举报