Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Latest commit

 

History

History

lite-site-preference-handler-jsp

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

lite-site-preference-handler-jsp

A Spring Mobile sample application demonstrating many of the capabilities of the Spring Mobile Device module, including:

  • "Lite" device resolution through the use of DeviceResolverHandlerInterceptor
  • Site preference management via SitePreferenceHandlerInterceptor
  • Spring Boot auto-configuration
  • JSP views

Auto-configuration

Spring Boot support is enabled through a property defined in application.properties. By default SitePreferenceHandlerInterceptor is enabled in Spring Mobile auto-configuration. If the following property is set to false, then this feature will be disabled.

src/main/resources/application.properties

spring.mobile.sitepreference.enabled: false

Build and Deploy

  1. Build with Gradle:

    $ ./gradlew build

    Or Maven:

    $ mvn clean package
  2. Run Spring Boot with Gradle:

    ./gradlew bootRun

    Or Maven:

    $ mvn spring-boot:run
  3. View the sample application at the following URL:

    http://localhost:8080/

License

Spring Mobile is released under version 2.0 of the Apache License.