爆炸式发展是什么意思?(在 Java 中)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1289358/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 07:49:13  来源:igfitidea点击:

What does Exploded Development mean? (In Java)

javajakarta-ee

提问by benstpierre

I came across the term "exploded development" on this site...

我在这个网站上遇到了“爆炸式开发”这个词......

http://www.zeroturnaround.com/javarebel/support-matrix/

http://www.zeroturnaround.com/javarebel/support-matrix/

and remembered hearing it before in relation to working with Java web applications. From what I can tell it is something to do with deploying your .war file as an extracted/raw set of files. Instead of using an ANT/Maven task to deploy a war file to the application server each time you want to try your code changes you are telling the application server to server the contents of a folder where the contents of the war are deployed "raw".

并记得之前听过它与使用 Java Web 应用程序有关。据我所知,这与将 .war 文件部署为提取/原始文件集有关。每次您想尝试更改代码时,不要使用 ANT/Maven 任务将 war 文件部署到应用程序服务器,而是告诉应用程序服务器为一个文件夹的内容提供服务器,其中战争的内容部署为“原始” .

Am I on the right track? If anybody has a solid understanding of what this term means and the implications of using it that would be great.

我在正确的轨道上吗?如果有人对这个术语的含义以及使用它的含义有深刻的理解,那就太好了。

采纳答案by pjp

Yes explodedmeans than instead of deploying a WAR/EARfile to your application server to test your application you point your application server at a foldercontaining the unzipped (exploded) contents of what would be inside the WAR/EAR file.

是的爆炸手段,而不是代替部署一个WAR/EAR文件到您的应用程序服务器来测试您的应用程序在一个点你的应用程序服务器文件夹中包含的会是什么WAR / EAR文件中的解压缩(爆炸)的内容。

This makes development quicker as most application servers support Hot Deploywhere you can change the code/JSPs etc and these changes will be reflected almost immediately in the running application.

这使得开发速度更快,因为大多数应用程序服务器支持热部署,您可以在其中更改代码/JSP 等,并且这些更改几乎会立即反映在正在运行的应用程序中。

The Tomcat plugin in Eclipse essentially uses this technique. The only thing to be careful of is that after many hot deploys most application servers start to run out of memory in the PermGen space and need restarting (well i've had this problem with Weblogic and Tomcat).

Eclipse 中的 Tomcat 插件实质上就是使用这种技术。唯一需要注意的是,在多次热部署之后,大多数应用程序服务器开始耗尽 PermGen 空间中的内存并需要重新启动(我在 Weblogic 和 Tomcat 上遇到过这个问题)。

回答by benstpierre

I also noticed under the FAQ on JavaRebel's website it explains it (not as detailed though)...

我还注意到在 JavaRebel 网站上的常见问题解答下它解释了它(虽然没有那么详细)......

http://www.zeroturnaround.com/javarebel/faq/#What_is_exploded_and_packaged

http://www.zeroturnaround.com/javarebel/faq/#What_is_exploded_and_packaged