Expose enableFallback property

Add an extra property to control the support of fallback resolution for
mobile views.

Fixes gh-3009, gh-3019
This commit is contained in:
Stephane Nicoll
2015-05-20 10:47:56 +01:00
parent 597e1c3cde
commit bd6f7a589c
4 changed files with 56 additions and 135 deletions

View File

@@ -497,6 +497,7 @@ content into your application; rather pick only the properties that you need.
# SPRING MOBILE DEVICE VIEWS ({sc-spring-boot-autoconfigure}/mobile/DeviceDelegatingViewResolverAutoConfiguration.{sc-ext}[DeviceDelegatingViewResolverAutoConfiguration])
spring.mobile.devicedelegatingviewresolver.enabled=true # disabled by default
spring.mobile.devicedelegatingviewresolver.enable-fallback= # enable support for fallback resolution, default to false.
spring.mobile.devicedelegatingviewresolver.normal-prefix=
spring.mobile.devicedelegatingviewresolver.normal-suffix=
spring.mobile.devicedelegatingviewresolver.mobile-prefix=mobile/