package Ġcom . compiler . server . configuration Ċ Ċ import Ġcom . compiler . server . model . VersionInfo Ċ import Ġorg . springframework . beans . factory . annotation . Value Ċ import Ġorg . springframework . boot . context . properties . Configuration Properties Ċ import Ġorg . springframework . boot . context . properties . Enable Configuration Properties Ċ import Ġorg . springframework . context . annotation . Bean Ċ import Ġorg . springframework . context . annotation . Configuration Ċ import Ġorg . springframework . context . annotation . Property Source Ċ import Ġorg . springframework . core . io . Resource Loader Ċ import Ġorg . springframework . format . Formatter Registry Ċ import Ġorg . springframework . web . servlet . config . annotation . Web Mvc Configurer Ċ import Ġjava . io . File Ċ Ċ @ Configuration Ċ class ĠApplication Configuration ( ĊĠ Ġ@ Value ("\ ${ policy . file }") Ġprivate Ġval Ġpolicy FileName : ĠString , ĊĠ Ġprivate Ġval Ġresource Loader : ĠResource Loader Ċ ) Ġ: ĠWeb Mvc Configurer Ġ{ ĊĠ Ġoverride Ġfun Ġadd Format ters ( registry : ĠFormatter Registry ) Ġ{ ĊĠĠĠ Ġregistry . add Converter ( Project Converter ()) ĊĠ Ġ} ĊĊĠ Ġ@ Bean ĊĠ Ġfun Ġpolicy File (): ĠFile Ġ= Ġresource Loader . getResource ( Resource Loader . CLAS SPATH _ URL _ PREFIX Ġ+ Ġpolicy FileName ). file Ċ } Ċ Ċ @ Configuration Ċ @ Property Source ( value Ġ= Ġ[ Resource Loader . CLAS SPATH _ URL _ PREFIX Ġ+ Ġ" libraries . properties "]) Ċ @ Enable Configuration Properties ( value Ġ= Ġ[ Libraries Folder Properties :: class ]) Ċ class ĠKotlin Libraries Configuration (@ Value ("\ ${ kotlin . version }") Ġprivate Ġval Ġversion : ĠString ) Ġ{ ĊĠ Ġ@ Bean ĊĠ Ġfun Ġversion Info () Ġ= ĠVersion Info ( version Ġ= Ġversion , Ġstdlib Version Ġ= Ġversion ) Ċ } Ċ Ċ @ Configuration Properties ( prefix Ġ= Ġ" libraries . folder ") Ċ class ĠLibraries Folder Properties Ġ{ ĊĠ Ġlateinit Ġvar Ġj vm : ĠString ĊĠ Ġlateinit Ġvar Ġjs : ĠString Ċ }