最小的 Java Web MVC 框架是什么?

发布于 2024-07-18 00:57:34 字数 1539 浏览 3 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

黎歌 2024-07-25 00:57:34

条纹ZTemplates 应该很轻。

Stripes and ZTemplates are supposed to be pretty light.

风轻花落早 2024-07-25 00:57:34

查看 spark。 它尽可能简约。

Checkout spark. Its as mimimalistic as it can get.

苍景流年 2024-07-25 00:57:34

查看 Apache Wicket

Take a look on Apache Wicket.

自由范儿 2024-07-25 00:57:34

grails 需要最少的配置,因为大多数配置都有合理的默认值。

grails requires a minimal amount of config since most of it has sane defaults.

夜未央樱花落 2024-07-25 00:57:34

我想说 spring webmvc 非常简约,恕我直言,它远非矫枉过正。
您不必包含整个 spring 框架来完成您的工作。 要启动 webmvc web 应用程序,您需要大约 3-4 个 jar IIRC。
不要低估 DI 在内部结构和可测试性方面的优势。

我会选择 Spring WebMVC + JSP 或许与 sitemesh 相结合。 稍后,当您意识到您有更复杂的事情要做时,您可以添加 Spring-Webflow 等。

I'd say that spring webmvc is pretty minimalistic and IMHO it's far from overkill.
You don't have to include the whole spring Framework to do your things. To start a webmvc webapp you need ~3-4 jars IIRC.
Don't underestimate the advantages of DI in regard of internal structure and testability.

I'd go for Spring WebMVC + JSP maybe combined with sitemesh. Later when you realize that you have more complicated stuff to do you could add Spring-Webflow and so on.

谈场末日恋爱 2024-07-25 00:57:34

制作 Java Web 应用程序的最简单方法是使用 JSP 来显示内容,并在后端使用纯 Java。

这几乎不需要任何配置。

唯一的要求是用于托管的 J2SE 和 Tomcat。

The most minimal way to do a Java web app would be to use JSPs to display your content and Just plain Java in the back end.

This would require almost no configuration.

The only requirements for that is the J2SE and Tomcat for hosting.

太阳公公是暖光 2024-07-25 00:57:34

最轻量级的Java框架是servlet + JSP。 尝试使用最新发布的标准 - Servlet 2.5 和 JSP 2.1。
Tomcat 提供了您所需要的一切:

  1. servlet 容器;
  2. JSP(可选);
  3. Java运行时;
  4. 提供 HTML 服务的 Web 服务器。

The lightest Java framework would be servlet + JSP. Try to use the latest released standards - Servlet 2.5 and JSP 2.1.
Tomcat provides all you need:

  1. servlet container;
  2. JSPs (optional);
  3. Java runtime;
  4. web server to serve HTMLs.
咋地 2024-07-25 00:57:34

尝试 appfuce.com。 这会根据您的偏好(struts2、spring 或 JSF)为您提供完整功能的 mvc web 应用程序。 并且它实现了示例登录系统,以便您了解所涉及技术的核心功能

try appfuce.com. this gives you full functional mvc webapplication based on your preference(struts2, spring or JSF). and it has sample login system implemented so that you will learn the core features of technologies involved

淡忘如思 2024-07-25 00:57:34

查看 (µ)Micro 看看它是否足够轻:)

HTH - 弗罗林

check out (µ)Micro and see if it is light enough :)

HTH - florin

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文