Drop support for Spring Mobile
Closes gh-10884
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
package org.test
|
||||
|
||||
@Controller
|
||||
@EnableDeviceResolver
|
||||
class Example {
|
||||
|
||||
@RequestMapping("/")
|
||||
@ResponseBody
|
||||
String helloWorld(Device device) {
|
||||
if (device.isNormal()) {
|
||||
"Hello Normal Device!"
|
||||
} else if (device.isMobile()) {
|
||||
"Hello Mobile Device!"
|
||||
} else if (device.isTablet()) {
|
||||
"Hello Tablet Device!"
|
||||
} else {
|
||||
"Hello Unknown Device!"
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user