且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

部署WAR或“胖”罐?

更新时间:2023-09-30 13:08:46

以下是一些原因:

In支持JAR:


  1. 易于构建和部署。

  2. 像Jetty这样的嵌入式服务器很容易操作。

  3. 用户可以轻松启动应用程序,也可以在个人计算机上运行,​​因为它们非常轻便。

  4. 启动和停止应用程序将需要的知识少于管理网络服务器。

  1. Simple to build and deploy.
  2. Embedded servers like Jetty are easy to operate.
  3. Applications are easy for users to start and they can run on their personal computers too, because they are lightweight.
  4. Starting and stopping applications will require less knowledge than managing web servers.

赞成WAR或EAR:


  1. 服务器将同时为多个Web应用程序提供部署,重启,安全等功能。

  2. 也许单独的部署团队可以处理启动和停止应用程序。

  3. 如果您的主管喜欢遵守规则,他们会很高兴地发现您没有违规。

话虽如此,您始终可以提供2种或3种类型的可执行文件以满足所有需求。任何构建工具都可以轻松实现。

Having said this, you can always provide 2 or 3 types of executables to cater to all needs. Any build tool makes this easy.