来自移动设备的流量,已经超过了来自PC的流量,我们不得不考虑一下,我们的网站开始要考虑是否照顾一下移动设备的用户,提供一个移动版的界面了。从2010年开始,Spring明显也感受到了这样的趋势,在移动开发领域,Spring做了以下几样东西:Spring Social、 Spring Mobile、 Spring Andriod
Spring Social是一个Spring的扩展,让你可以方便地连接一些Saas的服务,例如Tweeter、Facebook等。
不过,这些对我们都不重要,原因你懂的,所以就不详细说啦。
当我们想在同一个项目中同时服务普通版网站 和 移动版网站,Spring Mobile就能帮上忙了。Spring Mobile是Spring MVC的一个扩展,他提供了在移动开发中一些方便的功能:
1、一个在服务端检测终端类型的检测器
2、Site preference management :允许用户设置他要访问的是“普通”页面,还是“移动版”页面
3、site switcher :可配置普通版网站和移动版网站使用不同的域名的情况
Home Page:
http://www.springsource.org/spring-mobile
根据官方的介绍:Spring Android is an extension of the Spring Framework that aims to simplify the development of native Android applications.
Spring Android 是一个Spring框架的扩展,目标是简化本地Android应用开发。Spring Android有哪些特性呢?
它具体以下特性:
介绍文章:
http://blog.springsource.com/2010/11/19/spring-into-mobile-application-development/
GreenHoust项目使用了上面三种技术: