/** Ċ Ġ* ĠCopyright Ġ 2 0 2 0 , ĠY ahoo ĠHold ings ĠInc . Ċ Ġ* ĠLicensed Ġunder Ġthe Ġterms Ġof Ġthe ĠMIT Ġlicense . ĠSee Ġaccompanying ĠLICENSE . md Ġfile Ġfor Ġterms . Ċ Ġ*/ Ċ Ċ package Ġcom . yahoo . nav i . ws . config Ċ Ċ import Ġorg . springframework . boot . web . servlet . Filter Registration Bean Ċ import Ġorg . springframework . context . annotation . Bean Ċ import Ġorg . springframework . context . annotation . Configuration Ċ import Ġorg . springframework . web . filter . Sh allow E tag Header Filter Ċ import Ġorg . springframework . web . servlet . config . annotation . ViewController Registry Ċ import Ġorg . springframework . web . servlet . config . annotation . Web Mvc Configurer Ċ Ċ /** Ċ Ġ* ĠConfig ures Ġthe Ġweb Ġcontainer . Ċ Ġ*/ Ċ @ Configuration Ċ class ĠWeb Config Ġ: ĠWeb Mvc Configurer Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġadd View Controllers ( registry : ĠView Controller Registry ) Ġ{ ĊĠĠĠĠĠĠĠ Ġregistry . add ViewController ("/ ui / "). setView Name (" forward :/ ui / index . html ") ĊĠĠĠĠĠĠĠ Ġregistry . add ViewController ("/ ui /** /{ path : [^ \\. ]* } "). setView Name (" forward :/ ui /") ĊĠĠĠĠĠĠĠ Ġregistry . add ViewController ("/ ui "). setView Name (" redirect :/ ui /") ĊĠĠĠĠĠĠĠ Ġregistry . add ViewController ("/ "). setView Name (" redirect :/ ui /") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġshallow E tag Header Filter (): ĠFilter Registration Bean < Sh allow E tag Header Filter >? Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġfilter Ġ= ĠSh allow E tag Header Filter () ĊĠĠĠĠĠĠĠ Ġfilter . is Write Weak ET ag Ġ= Ġtrue ĊĠĠĠĠĠĠĠ Ġval Ġfilter Registration Bean Ġ= ĠFilter Registration Bean ( filter ) ĊĠĠĠĠĠĠĠ Ġfilter Registration Bean . add Url Patterns ("/ ui /* ") ĊĠĠĠĠĠĠĠ Ġfilter Registration Bean . setName (" etag Filter ") ĊĠĠĠĠĠĠĠ Ġreturn Ġfilter Registration Bean ĊĠĠĠ Ġ} Ċ } Ċ