Spring Boot 开发时在Intellij IDEA 中实现热部署,亲测可用
在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.****.net/tmaskboy/article/details/78996794#commentBox