What's the most minimal Java web MVC framework

2019-02-04 22:56发布

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.

9条回答
Emotional °昔
2楼-- · 2019-02-04 23:21

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

查看更多
走好不送
3楼-- · 2019-02-04 23:22

Stripes and ZTemplates are supposed to be pretty light.

查看更多
Melony?
4楼-- · 2019-02-04 23:26

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.

查看更多
SAY GOODBYE
5楼-- · 2019-02-04 23:26

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.
查看更多
孤傲高冷的网名
6楼-- · 2019-02-04 23:35

Take a look on Apache Wicket.

查看更多
冷血范
7楼-- · 2019-02-04 23:37

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

查看更多
登录 后发表回答