Springboot热部署

35 阅读1分钟

Springboot热部署

方式1

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

修改后rebuild或者ctr+f9 => 这种方式看起来和重启没什么区别

方式2

image.png

修改方法体内的内容后build就能生效,但是添加方法不生效,已经能解决大部分场景的问题了

方式3

使用jrebel插件,需要想办法激活,同时启动也用jrebel即可。