j2ee热部署开发
文章目录
开发环境热部署
- 用jrebel
1 | Could you please add -Drebel.log=true -Drebel.log.perf=true |
However not everything is listed as some of the options can only be used for the specific cases and might do more harm than good to the overly curious user.
原理java agent:
- osgi
1
Spring itself doesn't tell much about redeployment and stuff, but in most cases you can reload your templates without restarting depending on your ViewResolver. Furthermore in some environments (for example in OSGi) it is possible to hot-deploy classes, resources and nearly everything. Having a properly configured SpringSource [Tool Suite](https://spring.io/) and eg. [Virgo](http://www.eclipse.org/virgo/) WebServer it is possible to achieve hot deployment and as such you can reload the running classes as you save them.
生产环境使用切换集群
- dcevm