package Ġai . d stack . server . local . j ersey Ċ Ċ import Ġorg . springframework . context . annotation . Configuration Ċ import Ġorg . springframework . web . servlet . config . annotation . ViewController Registry Ċ import Ġorg . springframework . web . servlet . config . annotation . Web Mvc Configurer Ċ Ċ @ Configuration Ċ open Ġclass ĠWeb Application Config Ġ: ĠWeb Mvc Configurer Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġadd View Controllers ( registry : ĠView Controller Registry ) Ġ{ ĊĠĠĠĠĠĠĠ Ġregistry . add ViewController ("/ "). setView Name (" forward :/ index . html "); ĊĠĠĠĠĠĠĠ Ġregistry . add ViewController ("/ { x :[ \\ w \\ - ]+ } "). setView Name (" forward :/ index . html "); ĊĠĠĠĠĠĠĠ Ġregistry . add ViewController ("/ { x : ^ (? ! api \$ ). *\ $} /** /{ y :[ \\ w \\ - ]+ } "). setView Name (" forward :/ index . html "); ĊĠĠĠ Ġ} Ċ }