君子博学而日参省乎己 则知明而行无过矣

博客园 首页 新随笔 联系 订阅 管理

2012年11月23日 #

摘要: Spring 3,ContentNegotiatingViewResolver, is an interesting view resolver, which allow you to output a same resource (content or data) to different type of views likeJSP,XML,RSS,JSONand etc. Put it simple, see following web requested URL, which will return in different views. http://www.mkyong.co... 阅读全文
posted @ 2012-11-23 01:02 刺猬的温驯 阅读(7038) 评论(0) 推荐(0) 编辑

摘要: In Spring 3, comes with a abstract class “AbstractRssFeedView” to generate RSS feed view, using java.net’s ROME package. In this tutorial, we show you how to generate a RSS feed view from Spring MVC framework.Technologies used : Spring 3.0.5.RELEASE ROME 1.0.0 JDK 1.6 Eclipse 3.6 ... 阅读全文
posted @ 2012-11-23 00:53 刺猬的温驯 阅读(1188) 评论(0) 推荐(0) 编辑

摘要: In Spring 3, one of the feature of “mvc:annotation-driven“, is support for convert object to/from XML file, if JAXB is in project classpath.In this tutorial, we show you how to convert a return object into XML format and return it back to user via Spring @MVC framework.Technologies used : Spring... 阅读全文
posted @ 2012-11-23 00:38 刺猬的温驯 阅读(354) 评论(0) 推荐(0) 编辑

摘要: In Spring 3, you can enable “mvc:annotation-driven” to support object conversion to/from JSON format, ifJacksonJSON processor is existed on the project classpath.In this tutorial, we show you how to output JSON data from Spring MVC.Technologies used : Spring 3.0.5.RELEASE Jackson 1.7.1 J... 阅读全文
posted @ 2012-11-23 00:31 刺猬的温驯 阅读(353) 评论(0) 推荐(0) 编辑