在springboot 项目开发中,修改代码后能实现在免重启就自动部署,还是很提高工作效率的,下面说下如何实现
此文 spring boot版本: 2.0
下载此包
<dependency>
<groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId>
<version>1.2.8.RELEASE</version>
</dependency>


打开运行时编译
按快捷键 Shift+Ctrl+Alt+/ ,点击 Registry

根据首字母找到compiler.automake.allow.when.app.running,选中即可。

参考
Spring Boot项目在Intellij IDEA 中实现热部署 - geekfly的专栏 - 优快云博客
https://blog.youkuaiyun.com/tmaskboy/article/details/78996794#commentBox
本文详细介绍如何在SpringBoot 2.0项目中实现代码修改后的即时热部署,通过引入springloaded依赖并配置IDEA,大幅提升开发效率。

被折叠的 条评论
为什么被折叠?



