spring mobile 是什么?(一)

 当我们想在同一个项目中同时服务普通版网站 和 移动版网站,Spring Mobile就能帮上忙了。Spring Mobile是Spring MVC的一个扩展,他提供了在移动开发中一些方便的功能:

 

 

1、一个在服务端检测终端类型的检测器

2、Site preference management :允许用户设置他要访问的是“普通”页面,还是“移动版”页面

3、site switcher :可配置普通版网站和移动版网站使用不同的域名的情况

 

maven 配置:

当前最新是1.2.0,我们采用的是1.1.3版本

<dependencies>
    <dependency>
        <groupId>org.springframework.mobile</groupId>
        <artifactId>spring-mobile-device</artifactId>
        <version>1.1.3.RELEASE</version>
    </dependency>
</dependencies>

 

猜你喜欢

转载自349246338.iteye.com/blog/2213282