package Ġcom . github . ats ush i 1 3 0 . practice . configuration Ċ Ċ import Ġorg . springframework . beans . factory . annotation . Autowired Ċ import Ġorg . springframework . beans . factory . annotation . Qualifier Ċ import Ġorg . springframework . context . annotation . Bean Ċ import Ġorg . springframework . context . annotation . Component Scan Ċ import Ġorg . springframework . context . annotation . Configuration Ċ import Ġorg . springframework . context . annotation . Scoped Proxy Mode Ċ import Ġorg . springframework . web . servlet . Handler Interceptor Ċ import Ġorg . springframework . web . servlet . config . annotation . Web Mvc Configurer Ċ import Ġorg . springframework . web . servlet . handler . Mapped Interceptor Ċ Ċ @ Configuration Ċ @ Component Scan ( ĊĠĠĠĠĠĠĠ Ġscoped Proxy Ġ= ĠScoped Proxy Mode . TARGET _ CLASS , ĊĠĠĠĠĠĠĠ Ġbase Packages Ġ= Ġ[ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" com . github . ats ush i 1 3 0 . practice . presentation ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" com . github . ats ush i 1 3 0 . practice . domain ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" com . github . ats ush i 1 3 0 . practice . data ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" com . github . ats ush i 1 3 0 . practice . interceptor ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" com . github . ats ush i 1 3 0 . practice . controller Ad vis er ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" com . github . ats ush i 1 3 0 . practice . exception ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" com . github . ats ush i 1 3 0 . practice . extension " ĊĠĠĠĠĠĠĠ Ġ] Ċ ) Ċ @ Suppress (" unused ") Ċ class ĠApplication Configuration : ĠWeb Mvc Configurer Ġ{ ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠPriority Ġof Ġinterceptor Ġin Ġorder Ġfrom Ġthe Ġtop . ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġ@ Qualifier (" session Interceptor ") ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġsession Interceptor : ĠHandler Interceptor ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġ@ Qualifier (" user State Interceptor ") ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġuser State Interceptor : ĠHandler Interceptor ĊĊĠĠĠ Ġ@ Autowired ĊĠĠĠ Ġ@ Qualifier (" device Interceptor ") ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġdevice Interceptor : ĠHandler Interceptor ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġsession Mapped Interceptor (): ĠM apped Interceptor Ġ= ĠM apped Interceptor ( array Of (" /** "), Ġthis . session Interceptor ) ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġuser State Mapped Interceptor (): ĠM apped Interceptor Ġ= ĠM apped Interceptor ( array Of (" /** "), Ġthis . user State Interceptor ) ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġdevice Mapped Interceptor (): ĠM apped Interceptor Ġ= ĠM apped Interceptor ( array Of (" /** "), Ġthis . device Interceptor ) Ċ }