package Ġno . nav . fo . fore nk let deploy Ċ Ċ import Ġcom . fasterxml . jackson . databind . Deserialization Feature . ACCEPT _ EMPTY _ STRING _ AS _ NULL _ OBJECT Ċ import Ġcom . fasterxml . jackson . databind . Deserialization Feature . FAIL _ ON _ UNKNOWN _ PROPERTIES Ċ import Ġcom . fasterxml . jackson . databind . ObjectMapper Ċ import Ġcom . fasterxml . jackson . datatype . jdk 8 . J dk 8 Module Ċ import Ġcom . fasterxml . jackson . datatype . js r 3 1 0 . Java Time Module Ċ import Ġcom . fasterxml . jackson . module . kotlin . Kotlin Module Ċ import Ġcom . fasterxml . jackson . module . param names . Parameter Names Module Ċ import Ġno . nav . fo . fore nk let deploy . util . SSL Util Ċ import Ġorg . slf 4 j . LoggerFactory Ċ import Ġorg . springframework . boot . Spring Application Ċ import Ġorg . springframework . boot . autoconfigure . SpringBoot Application Ċ import Ġjavax . inject . Inject Ċ Ċ @ SpringBoot Application Ċ open Ġclass ĠMain Ċ Ċ fun Ġmain ( args : ĠArray < String >) Ġ{ ĊĠĠĠ Ġval ĠLOG Ġ= ĠLoggerFactory . getLogger ( Main :: class . java ) ĊĊĠĠĠ Ġif Ġ(" true ". equals ( System . getProperty (" web proxy . enabled ", Ġ" true "), Ġignore Case Ġ= Ġtrue )) Ġ{ ĊĠĠĠĠĠĠĠ ĠSSL Util . turn Off Ssl Checking () Ġ// ĠE ll ers Ġv il Ġdet Ġfe ile Ġmot Ġun le ash - api et Ġ- _- ĊĊĠĠĠĠĠĠĠ ĠSystem . setProperty (" http . non Proxy Hosts ", Ġ" localhost | 1 2 7 . 0 . 0 . 1 | 1 0 . 2 5 4 . 0 . 1 | *. local | *. ade o . no | *. nav . no | *. a et at . no | *. dev illo . no | *. o era . no ") ĊĠĠĠĠĠĠĠ ĠSystem . setProperty (" http . proxy Host ", Ġ" web proxy . na is ") ĊĠĠĠĠĠĠĠ ĠSystem . setProperty (" http . proxy Port ", Ġ" 8 0 8 8 ") ĊĠĠĠĠĠĠĠ ĠSystem . setProperty (" https . proxy Host ", Ġ" web proxy . na is ") ĊĠĠĠĠĠĠĠ ĠSystem . setProperty (" https . proxy Port ", Ġ" 8 0 8 8 ") ĊĊĠĠĠĠĠĠĠ ĠLOG . info (" http . non Proxy Hosts : Ġ{}", Ġjava . lang . System . getProperty (" http . non Proxy Hosts ")) ĊĠĠĠĠĠĠĠ ĠLOG . info (" http . proxy Host : Ġ{}", Ġjava . lang . System . getProperty (" http . proxy Host ")) ĊĠĠĠĠĠĠĠ ĠLOG . info (" http . proxy Port : Ġ{}", Ġjava . lang . System . getProperty (" http . proxy Port ")) ĊĠĠĠĠĠĠĠ ĠLOG . info (" https . proxy Port : Ġ{}", Ġjava . lang . System . getProperty (" https . proxy Port ")) ĊĠĠĠĠĠĠĠ ĠLOG . info (" https . proxy Port : Ġ{}", Ġjava . lang . System . getProperty (" https . proxy Port ")) ĊĠĠĠĠĠĠĠ ĠLOG . info (" http . non Proxy Hosts : Ġ{}", Ġjava . lang . System . getProperty (" http . non Proxy Hosts ")) ĊĊĠĠĠ Ġ} Ġelse Ġ{ ĊĠĠĠĠĠĠĠ ĠLOG . info (" Web Ġproxy Ġsettings Ġdisabled . ĠSk ipping .") ĊĠĠĠ Ġ} ĊĊĠĠĠ ĠSpring Application . run ( Main :: class . java , Ġ* args ) Ċ } Ċ Ċ @ Inject Ċ fun Ġconfigure ObjectMapper ( mapper : ĠObjectMapper ) Ġ{ ĊĠĠĠ Ġmapper . register Module ( Parameter Names Module ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. register Module ( J dk 8 Module ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. register Module ( Java Time Module ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. register Module ( Kotlin Module ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. configure ( FAIL _ ON _ UNKNOWN _ PROPERTIES , Ġfalse ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. configure ( ACCEPT _ EMPTY _ STRING _ AS _ NULL _ OBJECT , Ġtrue ) Ċ } Ċ