Spring Mobile is an extension to Spring MVC for development of mobile web applications. The Spring Mobile Device module provides a feature (DeviceResolver / LiteDeviceResolver) to detect devices like mobile and tablet in the server side. 
Device aware view management is very useful specially when it is required to serve different optimized versions of same website based on request generating device type or specific devices. 
Another feature called site preference management allows user to set his / her preference (SitePreference) to view a particular site in either "normal", "mobile" or "tablet" mode from a particular device. 
Spring mobile also provides different types of site switchers (like mDot, dotMobi and urlPath SiteSwitcher) which automatically redirect users to the device specific site based on the device generating the request and site preference set by the user.

Tools and Technologies used in this article :

  1. Spring Mobile 1.1.0.M2 Released

  2. Spring Tool Suite 3.1

  3. JDK 1.6

  4. Tomcat 7

Note : Spring 3 requires at least JDK 5. So, make sure you have JDK 5 or above.

 

Read More -->