spring-boot-devtools

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

配置IDEA以使其支持devtools:
因为IDEA默认不会自动build项目,因此需要手动设置,如下:ctrl+alt+s -> buld, deployment -> compiler -> 将build project automatically打开;ctrl+shift+alt+/ -> registry -> 将compiler.automake.allow.when.app.running打开

猜你喜欢

转载自www.cnblogs.com/crazyRanZhang/p/9445606.html
今日推荐