What's the most minimal Java web MVC framework? [closed]

与世无争的帅哥 提交于 2019-11-29 09:05:06

问题


I'm looking for a Java web framework that requires the most minimal amount of configuration for a very small app. Spring & Struts are definitely overkill here. This is an app that could be written without any framework at all but I would prefer to use a minimal MVC framework if I can find one.


回答1:


Stripes and ZTemplates are supposed to be pretty light.




回答2:


Checkout spark. Its as mimimalistic as it can get.




回答3:


Take a look on Apache Wicket.




回答4:


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




回答5:


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.




回答6:


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.




回答7:


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.



回答8:


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




回答9:


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

HTH - florin



来源:https://stackoverflow.com/questions/796219/whats-the-most-minimal-java-web-mvc-framework

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!