If you'd like to pass the current Device
as an argument to one of your @Controller
methods, configure a DeviceWebArgumentResolver
:spring
<annotation-driven> <argument-resolvers> <bean class="org.springframework.mobile.device.DeviceWebArgumentResolver" /> </argument-resolvers></annotation-driven>