java Freemarker + Spring MVC 教程
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10976103/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Freemarker + Spring MVC tutorial
提问by Pete
I'm new to Spring MVC and Freemarker. So far I've used JSF and I have some experience with Ruby on Rails (concerning the RESTful pattern..).
我是 Spring MVC 和 Freemarker 的新手。到目前为止,我已经使用过 JSF 并且我对 Ruby on Rails 有一些经验(关于 RESTful 模式......)。
I have my Spring web app configured and am now ready to try some basic stuff like forms and so on but I can't find any tutorials on using Spring MVC with freemarker. Since I have neither experience with Spring MVC nor Freemarker I'm quite lost where to start...
我已经配置了我的 Spring Web 应用程序,现在准备尝试一些基本的东西,比如表单等,但我找不到任何关于使用带有 freemarker 的 Spring MVC 的教程。由于我既没有使用 Spring MVC 也没有使用 Freemarker 的经验,我完全不知道从哪里开始......
Should I try to understand freemarker first? I feel like Spring MVC, appart from the taglibs, just provides me with a way to setup a RESTful MVC app in a Spring context and that's it..?
我应该先尝试了解 freemarker 吗?我觉得 Spring MVC,来自 taglibs 的 appart,只是为我提供了一种在 Spring 上下文中设置 RESTful MVC 应用程序的方法,仅此而已......?
Thank's for helpful links or even better some good books!
感谢提供有用的链接,甚至更好的一些好书!
回答by davioooh
Obviously official documentation can help you (Spring MVC): http://static.springsource.org/spring/docs/current/spring-framework-reference/html/mvc.html
显然官方文档可以帮助你(Spring MVC):http: //static.springsource.org/spring/docs/current/spring-framework-reference/html/mvc.html
In particular, you can refer to this chapter for configuring Spring MVC + FreeMarker: https://docs.spring.io/spring/docs/current/spring-framework-reference/web.html#mvc-view-freemarker
具体配置Spring MVC + FreeMarker可以参考本章:https: //docs.spring.io/spring/docs/current/spring-framework-reference/web.html#mvc-view-freemarker
For a general introduction to Spring MVCtake a look also to this tutorial: http://viralpatel.net/blogs/tutorial-spring-3-mvc-introduction-spring-mvc-framework/
有关Spring MVC的一般介绍,请查看本教程:http: //viralpatel.net/blogs/tutorial-spring-3-mvc-introduction-spring-mvc-framework/
Also this quick tutorial looks interesting (Spring MVC 3 + FreeMarker): http://blog.teamextension.com/quick-freemarker-in-spring-3-tutorial-577
这个快速教程看起来也很有趣(Spring MVC 3 + FreeMarker):http: //blog.teamextension.com/quick-freemarker-in-spring-3-tutorial-577