我应该使用 play 框架还是普通的 Java EE

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5778491/
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-10-30 12:44:02  来源:igfitidea点击:

Should i use play framework or normal Java EE

javajakarta-eeplayframework

提问by dojoBeginner

Am planning to start a website that I will use commercially. I recently have heard of the Play framework and it looks good. But am not sure if I should use it or not. I know java, jsp, servlets and struts 1.

我打算建立一个我将用于商业用途的网站。我最近听说了 Play 框架,它看起来不错。但我不确定我是否应该使用它。我知道 java、jsp、servlets 和 struts 1。

I don't know how stable that framework is? Should I go with a native Java EE application or should I use Play?

我不知道那个框架有多稳定?我应该使用原生 Java EE 应用程序还是应该使用 Play?

回答by emt14

If you want to have a rapid return on investment play is your friend. Within days of using it you can get a web site up and running (which even for an experienced Java EE developer is a bit of a challenge). I think you need to balance you requirements with the advantages of play.

如果您想获得快速的投资回报,玩是您的朋友。在使用它的几天内,您就可以启动并运行一个网站(即使对于有经验的 Java EE 开发人员来说也是一个挑战)。我认为你需要平衡你的要求和发挥的优势。

Check this interesting post: https://stackoverflow.com/questions/5376732/what-is-pro-and-contra-of-using-play-framework

检查这个有趣的帖子:https: //stackoverflow.com/questions/5376732/what-is-pro-and-contra-of-using-play-framework

Play is always gaining more momentum and there are already a few commercial websites using it http://www.playframework.org/community/testimonials.

Play 总是获得更多动力,并且已经有一些商业网站在使用它http://www.playframework.org/community/testimonials

I would also add that play is fun to develop with which will also add to your productivity!

我还要补充一点,玩游戏很有趣,这也会增加你的生产力!

回答by Codemwnci

Play is stable. It now has some big reference sites, including the guardian.co.uk and more and more sites are springing up all the time. It is very easy to develop in, has its own dedicated hosting service (if required) and has a very active community.

播放稳定。它现在有一些大型参考网站,包括 Guardian.co.uk 并且越来越多的网站一直在涌现。它非常易于开发,拥有自己的专用托管服务(如果需要),并且拥有非常活跃的社区。

As for whether you should use it or not, is too subjective a question to answer fairly. I use it, and would always now do so over a Java EE application, but my needs (quick, clean, not bloated) may not be the same drivers as yours.

至于是否应该使用它,这个问题太主观了,无法公正地回答。我使用它,现在总是通过 Java EE 应用程序这样做,但我的需求(快速、干净、不臃肿)可能与您的驱动程序不同。

I would suggest doing a proof of concept in both technologies, and see which one suites your needs the best. If you cant afford the time to do a proof of concept, maybe you should stick to what you know?

我建议对这两种技术进行概念验证,然后看看哪一种最适合您的需求。如果你没有时间做一个概念验证,也许你应该坚持你所知道的?

回答by Chris Aldrich

Part of the answer is in the answer to the question: What is the purpose of this website?

部分答案就在这个问题的答案中:这个网站的目的是什么?

Personally, I would stick with more well-used frameworks like Java EE (version 5 & 6 have a LOT less cruft than the older versions) or something like Spring or Seam. If you are going for a simple site, maybe look into JBoss Seam.

就我个人而言,我会坚持使用更常用的框架,如 Java EE(版本 5 和 6 比旧版本少得多)或 Spring 或 Seam 之类的框架。如果您要创建一个简单的站点,请查看JBoss Seam

回答by Gressie

Play does indeed look nice and clean. From my experience using any new framework will bring its pros and cons. Play might be buggy, you seem to know Java EE. It really depends on what you want to do and how much you're willing to invest in learning something new.

Play 确实看起来不错而且干净。根据我的经验,使用任何新框架都会带来其优点和缺点。Play 可能有问题,您似乎了解 Java EE。这实际上取决于您想做什么以及您愿意在学习新事物上投入多少。

In my opinion it is always possible to transition to some new way of delivering your site content. It's healthy to keep experimenting with new frameworks, but wiser to build business on a framework you know. That way the bottleneck wont be the technology.

在我看来,总是可以过渡到一些新的网站内容交付方式。不断尝试新框架是有益的,但在您熟悉的框架上开展业务更为明智。这样,瓶颈就不会是技术。