package Ġcom . r util ic us . ui set list Ċ Ċ import Ġorg . springframework . context . annotation . Configuration Ċ import Ġorg . springframework . web . servlet . config . annotation . Interceptor Registry Ċ import Ġorg . springframework . web . servlet . config . annotation . ViewController Registry Ċ import Ġorg . springframework . web . servlet . config . annotation . Web Mvc Configurer Ċ Ċ @ Configuration Ċ class ĠM vc Config : ĠWeb Mvc Configurer Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġadd View Controllers ( registry : ĠView Controller Registry ) Ġ{ ĊĠĠĠĠĠĠĠ Ġregistry . add ViewController ("/ login "). setView Name (" login ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġadd Intercept ors ( registry : ĠInter ceptor Registry ) Ġ{ ĊĠĠĠĠĠĠĠ Ġregistry . add Interceptor ( Common Attribute Interceptor ()). add Path Patterns (" /** ") ĊĠĠĠ Ġ} Ċ } Ċ