为简单的Java Web应用程序使用框架是否有意义? [英] Does it make sense to use a framework for a simple java web app?

查看:141
本文介绍了为简单的Java Web应用程序使用框架是否有意义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用jsps和servlet做了很多java web开发,我发现这种方法简单灵活。虽然涉及的一些基础工作 - 例如管理数据库连接 - 相当繁琐,但只需要开展新的网络应用程序就需要花费大量的工作。

I've done lots of java web development using jsps and servlets, and I have found this approach to be straightforward and flexible. Some of the groundwork involved though - such as managing database connections - is rather tedious, and it takes a fair amount of work just to get a new web app off the ground.

因此,我正在考虑首次使用框架,但我对框架的印象是它们主要用于大型J2EE应用程序并涉及大量复杂的配置。我正在寻找的是一些简单的东西(在初始学习曲线之后)将使我能够尽快启动并运行新的网络应用程序。

I'm therefore considering using a framework for the first time, but my impression of frameworks is that they're mostly used for large J2EE applications and involve a lot of complex configuration. What I'm looking for is something simple that (after the initial learning curve) will enable me to get up and running with a new web app as quickly as possible.

所以我的问题是 - 使用一个简单的Java Web应用程序的框架是否有意义?

So my question is - does it make sense to use a framework for a simple java web app?

请注意,我不是在询问使用哪个框架(如果确实建议使用框架),因为它已经被要求在其他地方

Note that I'm not asking which framework to use (if indeed a framework is recommended), as it has already been asked here.

推荐答案

这很有道理。我的团队用我们的开源堆栈度过了五年的大部分时间,无论如何我们都有一个种子项目(就像appfuse一样),我们用它来创建所有新的Web应用程序。即使是维护应用程序pov的简单两个寻呼机,它看起来像其他应用程序,只是更小。

It makes a lot of sense. My team has spent the better part of five years with our open source stack and no matter and we have a "seed" project (works like appfuse) that we use to create all new web apps. Even the simple two pagers from the pov of maintaining the app, it looks like every other app, just smaller.

简短的是你不会得到任何回报现在投资,但随着项目的发展,你将继续投资。

The short is you won't get any return on the investment right now, but you will as the project evolves and you maintain it.

这篇关于为简单的Java Web应用程序使用框架是否有意义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆