Intellij IDEA 使用jrebel运行spring-boot并实现自动编译进行热部署
spring-boot
spring-projects/spring-boot: 是一个用于简化Spring应用开发的框架。适合用于需要快速开发企业级Java应用的项目。特点是可以提供自动配置、独立运行和内置的Tomcat服务器,简化Spring应用的构建和部署。
项目地址:https://gitcode.com/gh_mirrors/sp/spring-boot

·
在使用jrebel运行spring-boot的时候,会发现一个很棘手的问题,就是项目不能自动编译,不能自动编译就不能实现热部署。(使用jar包方式运行的时候)
那么我们就要解决自动编译的问题,首先:
1、勾选上Build project automatically
2、按组合键 Shift+Ctrl+Alt+/,选择Registry
3、勾选上compiler.automake.allow.when.app.running
4、使用jrebel debug模式重新运行你的项目,更改html或者类的时候,idea就会自动的编译了。
转载请注明出处: 桑博:http://blog.csdn.net/cutelittlebo/article/details/77522062




spring-projects/spring-boot: 是一个用于简化Spring应用开发的框架。适合用于需要快速开发企业级Java应用的项目。特点是可以提供自动配置、独立运行和内置的Tomcat服务器,简化Spring应用的构建和部署。
最近提交(Master分支:6 天前 )
07c18ea9
With Spring Authorization Server migrating to Spring Security proper as
of v7, this commit removes dependency management for it and adapt to
changes in recent snapshots
Closes gh-47174
17 小时前
b3c38a30
See gh-47199
1 天前
更多推荐
所有评论(0)