开发者

Boilerplate code for MVC web-app?

I've never had the joy of putting together a java web-app in the MVC form myself before?

Stopping shy of a letmegooglethatforyou.com request, would anyone here be able to recommend a good place where I might find a good boilerplate source to learn from?

I seem to lear开发者_如何学JAVAn best that way...

With Thanks,

Mike


This Spring MVC step-by-step article is a tutorial on putting together a webapp with Spring MVC, the Spring framework, and JDBC, using HSQL.


The Spring MVC Petstore (various versions included in the full spring distribution) is exactly such project. Moreover, it has been heavily used as an example and there are several versions of it that highlight boilerplate code for various scenarios (Spring Security, DWR, etc.).


http://www.ensta.fr/~diam/java/online/notes-java/GUI/structure/40mvc.html , http://onjava.com/pub/a/onjava/2004/07/07/genericmvc.html , http://www.oracle.com/technetwork/articles/javase/mvc-136693.html and basically anything else you turn up with a search for "MVC java" contain plenty of source code you can peruse to learn the basics of MVC in Java. These all contain some small examples of simple MVC that you can look at quickly.

So, to answer your question, the best place to find stuff like this is a neat website called http://www.google.com . Seriously, you can go to Oracle's website as well and look at some of the docs.


Look at some successful web MVC frameworks: Spring, Wicket, Struts (okay, not that successful), etc.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜