Spring mobile
Spring Mobile offers automatic detection of screen devices based on the request transaction. It will filter if the request is coming from a mobile device, tablet, or desktop. With the use of Bootstrap, Kickstrap, and other theming capabilities, we can design beforehand different layouts and templates that will fit per the device. Spring Mobile is Spring's support for web responsiveness.
Configuration
Initially, the org.springframework.mobile.device.site.SitePreferenceWebArgumentResolver
and org.springframework.mobile.device.DeviceWebArgumentResolver
are configured so that site preference and device parameters can be used as arguments to our @Controller
.
<mvc:annotation-driven> <mvc:argument-resolvers> <bean class="org.springframework.mobile ...
Get Spring MVC Blueprints now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.