spring boot: 热部署(一) run as – java application (spring-loader-1.2.4.RELEASE.jar) 如果使用的run as – java application的话,那么还需要做一些处理. 1.把spring-loader-1.2.4.RELEASE.jar下载下来,放到项目的lib目录中, 2.然后把IDEA的run参数里VM参数设置为: -javaagent:.\lib\springloaded-1.2.4.RELEASE.jar
创建热部署模块 参考文档 https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide In this part, you will learn how to create and load your own custom component and add first screen that shows “This is practice application”
从网上看到的解决方案,做一下备忘: spring boot项目中遇到jrebel类需要手动编译才会触发热部署的问题(spring boot devtools一样的问题) 1.ctl + shift + option 2.registry 3.compiler.automake.allow.when.app.running 勾选 英文:Allow auto-make to start even if developed application is currently running. Note
仅适用IDEA中,eclipse中不需要设置 一.开启idea自动make功能 1 - Enable Automake from the compiler PRESS: CTRL + SHIFT + A TYPE: make project automatically PRESS: Enter Enable Make Project automatically feature 2 - Enable Automake when the application is running PRESS: C