idea的springboot项目之热部署

88 阅读1分钟

在pom.xml中引入依赖

<!--热部署-->
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-devtools</artifactId>
            <optional>true</optional>
        </dependency>

在这里插入图片描述
在这里插入图片描述
ctrl+alt+shift+/
第一个
在这里插入图片描述
为更新的时间,这样设置就行
在这里插入图片描述
不用每次都重启服务,crtl+f10就能启动了,有的电脑f10为快捷键,那木就是crtl+fn+f10

世界上什么都有,就是没有如果。