MVC Web 应用程序的样板代码?
我以前从未享受过以 MVC 形式组装 Java Web 应用程序的乐趣?
不要回避 letmegooglethatforyou.com 请求,这里有人可以推荐一个好地方,我可以在其中找到好的样板源吗学习?
我似乎这样学得最好......
谢谢,
麦克风
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 learn best that way...
With Thanks,
Mike
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
这篇Spring MVC 分步文章是一个关于使用 HSQL 将 Web 应用程序与 Spring MVC、Spring 框架和 JDBC 组合在一起的教程。
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.
Spring MVC Petstore(完整的 Spring 发行版中包含的各种版本)正是这样的项目。此外,它已被大量用作示例,并且有多个版本突出显示各种场景的样板代码(Spring Security、DWR 等) 。
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/struct/40mvc.html ,http://onjava.com/pub/a/onjava/2004/07/07/genericmvc.html , http://www.oracle.com/technetwork/articles/javase/mvc-136693.html 以及基本上您转向的任何其他内容搜索“MVC java”包含大量源代码,您可以仔细阅读以学习 Java 中的 MVC 基础知识。这些都包含一些简单 MVC 的小示例,您可以快速查看。
因此,为了回答您的问题,查找此类内容的最佳位置是一个名为 http://www.google.com 的简洁网站。说真的,您也可以访问 Oracle 的网站并查看一些文档。
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.
看看一些成功的 Web MVC 框架:Spring、Wicket、Struts(好吧,不是那么成功)等。
Look at some successful web MVC frameworks: Spring, Wicket, Struts (okay, not that successful), etc.