Spring MVC REST内容协商(同一资源,多种呈现方式,html、xml、json等,通过ContentNegotiatingViewResolver)

Spring MVC REST内容协商(同一资源,多种展现方式,html、xml、json等,通过ContentNegotiatingViewResolver)突

Spring MVC REST内容协商(同一资源,多种展现方式,html、xml、json等,通过ContentNegotiatingViewResolver)

突然对ruby on rails来了兴趣,便捣弄了两天,用脚手架做了个hello world,实质上也就是一行命令的事,的确够效率。看一下Controller,其REST风格实在太简洁了。

?

仅作小记,如果刚好对他人有用就更好了。