Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(9)
条纹 和 ZTemplates 应该很轻。
Stripes and ZTemplates are supposed to be pretty light.
查看 spark。 它尽可能简约。
Checkout spark. Its as mimimalistic as it can get.
查看 Apache Wicket。
Take a look on Apache Wicket.
grails 需要最少的配置,因为大多数配置都有合理的默认值。
grails requires a minimal amount of config since most of it has sane defaults.
我想说 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.
制作 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.
最轻量级的Java框架是servlet + JSP。 尝试使用最新发布的标准 - Servlet 2.5 和 JSP 2.1。
Tomcat 提供了您所需要的一切:
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:
尝试 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
查看 (µ)Micro 看看它是否足够轻:)
HTH - 弗罗林
check out (µ)Micro and see if it is light enough :)
HTH - florin