美文网首页
spring-boot热部署

spring-boot热部署

作者: MaJiT | 来源:发表于2020-05-15 15:51 被阅读0次

1.添加热部署依赖

        <!--一下两个依赖时springboot热部署相关的包-->
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>springloaded</artifactId>
            <version>1.2.6.RELEASE</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <optional>true</optional>
        </dependency>

配置IDEA自动编译


image.png

设置IDEA的Registry
快捷键:ctrl_shift+alt_/


image.png

选择registry ---->勾选complier.automake.allow.when.app.running


image.png

相关文章

网友评论

      本文标题:spring-boot热部署

      本文链接:https://www.haomeiwen.com/subject/nlicohtx.html