package Ġcn . byte code . babel . config Ċ Ċ import Ġcn . byte code . babel . interceptor . Device Interceptor Ċ import Ġorg . springframework . boot . context . properties . Enable Configuration Properties Ċ import Ġorg . springframework . context . annotation . Configuration Ċ import Ġorg . springframework . web . servlet . config . annotation . Enable Web Mvc Ċ import Ġorg . springframework . web . servlet . config . annotation . Interceptor Registry Ċ import Ġorg . springframework . web . servlet . config . annotation . Resource Handler Registry Ċ import Ġorg . springframework . web . servlet . config . annotation . Web Mvc Configurer Ċ Ċ @ Configuration Ċ @ Enable Web Mvc Ċ @ Enable Configuration Properties ( Application Properties :: class ) Ċ open Ġclass ĠWeb Mvc Config ( ĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġapplication Properties : ĠApplication Properties Ċ ) Ġ: ĠWeb Mvc Configurer Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġadd Intercept ors ( registry : ĠInter ceptor Registry ) Ġ{ ĊĠĠĠĠĠĠĠ Ġregistry . add Interceptor ( Device Interceptor ( application Properties . mobile Ua Pattern )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġadd Resource Handlers ( registry : ĠResource Handler Registry ) Ġ{ ĊĠĠĠĠĠĠĠ Ġregistry . add Resource Handler (" /** "). add Resource Locations (" classpath :/ static /") ĊĠĠĠ Ġ} Ċ } Ċ