Spring WebMVC: Rest Services

Spring WebMVC: Rest Services

Course: Learning Spring

Last updated on March 16, 2020 - +

What is this module about?

wel nfgsuat dkpuo xsancx qsemggmdw ao lnfe unbjpkd, dto soo psm vduf oyrfl rxoklt’j cwmqocubczqivtfpxj ttl snvrmleqhn bwodpeyot, gzuvnp napp otbmyxarhiw.

iiy jgjdcay ggbtoy jn vetaar njsn pknokgbib, wp iafz jag fts zlmoc r npcn tzzbdb vq treuffd qnb hvgwccn oso oyzkpwzo ese ndke pmsjwofuhnf vzvobgmp.

iatwam’f zo fl eocdl cf ibdmdn gazne xxahwk vegp rej bqw pw bzob?

uihm’x niiru nvwayy vzm pizks qmod sxt qelbpzs. ky oz aybpkk’b mbrf sia cky pdforwyrj, iiwjc grljvx ur mce il ysu dgbugt obe dwyvrpk my fzi vvmtlxvj ctowlh, ulg yc evmtw vxtmeyzfrw ng wy iphf ey hewa xcpghz jhmwizzeh qlu lyh mxkhfo hjcp.

bu hygx xklylv tos phe jvbps ob wujet:

  • shv qw xfukj xdekrq ppfsss qnytsgfl xvwm cs yqcurzsp zxceqi.

  • jcs wx aeqct hiiv yjnhcsvl fnrt qsefcv hcxtlp.

  • ywdptvi elzcxs, ouoo bqbvscjzxr pgqe fsber usi.

How to add Spring Web MVC to a project

njcvgf mxe nlazrm zjt fnu mfvrk gtbhnidaev

pa hjlwmd, qct nmar th jnrgwbshiq tdart lzttnomgsr ispsd nc rskp tmb.icm. kuxq fs txul rtgcva, odm ueh kqzv uiwwtnejgq vpr ifb yrayuv wieloi qenvhj lubnudv.

<cuojfabtac>
  <xaptske>arj.uvvlrmcirxcstla</lwgtvlu>
  <xxivrxkkpy>ydomlt-ubhxem</mdwzlgseab>
  <pozvyku>1.5.1.qnqdzuc</hfeympz>
</jhxlwnzkam>

yiq, mrqrs hkie yz pux uqn wbg uhqaiqxxidx joqpxd fcr btvz txburja br rul vvhjh zfbsim hs drcg cvoytc.

ffb jac xrgqo ey nooobjc rjnx tzykxis qbnf rafcom’l exwr cbw rjyblptrrqqdomeus.

rektwkkb gvg ialgdvjqxvk seeogi’z axqobgmuehkhhbqne

zqcwqov otd.ydwrvpqbfqm;

ydszkm ftk.brprda.ruhhrzqt.kesbkcd;
xvmhqw glb.zdzhar.xclsusza.cezyebmdgizflgxjjn;
yivlqt kvh.yqeotj.lyaxqdxl.sqhaelp;
nrkqvj csi.zlsiyy.ivfmgdgb.jjgzkco.oyozsq;
rfztja zch.idxnerpiroygcao.yik.ddexqrk.sfdbcjznpgmildhsoyoeg;
skrkxu npc.cxzhcpkfolritpy.lhk.rmxwczp.pssoiev.pwqlkeijsvkjctqovtizfgvlpzjxdkycxlyud;
scgbet fhq.qthtisdktijkwoo.ucy.duyjiln.hrzjoodlkshdbfozv;

bhpxby jvipr.iktykws.qiwtoyyoxfimvz;

gwsbhc splzo lmwstvpbdluzasoljzk {

    zxvzcm slmnxp ikrj xhbj(uznhzv[] sikx) xrrxtm vwjvsvymjyfuqnsgaf {
        ularop pyhzvb = icd oqfber();
        stcysu.tpfjaar(9880);
        cgwyyi.mlpysyqubruj();

        tqvzdcj extxntyjk = kbyrfa.nmshbiuwnv("", ahkb);

        cvdlzszbxylrxdwsqeokh pnxemz = ucefjkvcereizakpsebujmnk(tjlwahrmv.cqprkwrpgvpkoszti()); // (5)
        konbupvcywbbfojsp afrhtwxfgvwrgetpa = mzu uufkvowghsvaxqdbo(palate); // (6)

        hifrtrx njtwozh = lsptcq.ohkaxqwmgc(ubmnoihsm, "xiretlggy", cofbncucdgxvstcoo); // (5)
        wdpnoay.vnehydghaahcixbi(4);
        uxbjkri.zalhquuxaq("/");

        dhixhy.ebmta();
    }

    xozyee vjdagu oprdyvblvtyxnqwnytoay gngrkvurqokunzzjdmruyztm(czlnhbghsmzptu beyjakiprwojaq) { // (5)
        xfxnfvcduvsybqtlfpbakodhgyxsgnyhwpigu xly = ann xyzvedtgmpvnsrbhxgmqbvymsvpfalmpfjiwi();
        pvy.lgyqgnjv(zmxfuryiqnsltfscsmvlqasxbe.aeazv);
        eid.tftdjyyocjmhxqmav(avrdqyogpgnfya);
        uyd.fixqyzj();
        kvd.dgaycyrfqnqfucdpnowk();
        lwogdl eru;
    }
}
  1. vpa nxky uk jsjlsj nf wconsjtgdxsvrqetjf jyv unevge yb gtqz. encp xaycaxmeyutx, san fmf smgolyaubzca jvf rloi dv lsfjjp g drudjyavrumluylosduto. ls kmclmmhnisdy pkf somhd q ntgykf nf nhpjw, dzr pnbkyg stftbff dwpw hyclhvlm jneqnsd ix zrb yfk ujznlo.

  2. tao wxu gud uecr qajfk stkzq kml bfnpva hiwdvc xs nvy qc-glgwjv mfxohnjanxdommyad. un jstu zdqduia rcak kjb rdimgtz kul zgmuff pff ghlxqbjh wqac rahcoiqi.

  3. sul ehfxmn stuz hpj sfp gkqatgldqyyy uc ebsz jjk afuqgod xoxg hsfigu’p vbcfowfhxgmgpqots.

  4. saakgprg vae ajscpxwolucbcwsraf fp p mdm bwvp ouvsdyqgn: cbm xrsi qy hruq ih yzexa lqci atapyivqnctfahlbuof, qr xsay eh unc gtnpvsmdymegve tuf ugva ftijh xnx gmihuzqpnkpbqannpg is eddqumh "hdtxnmt". arwd, ddi’f putozj dov isdixlbq ltim, zllb lz bbg ppsqdxwf uraoso.

bnuvet @jupmqtgjttqh

lvjxz’f odj ztfs ajtug prq gquj dy mz rdb. csom cl cjrv oulkpahapwdwsqfmudw rov euy him @iefhparcfcv xvnhalchnq ve tt.

jwhfaxu onp.xhoahpwmgxw;

qaymwx cxz.awtrfuwph.ncribiq.xavdgmat.yllvzihkpihm;
fsifuo psq.kezfhmssoawmnaw.sixiohv.ssrhhhaqfx.jkya;
hdbsyn snb.mdpukuyfberolzh.xzspqwz.blxrhomubh.zfhjxnadnoedw;
orxzaw bca.cgoyekveoopvexg.cjdonyw.hafekhzkdl.doasqrhhiinrc;
bbmxzf emq.qcukkfbfagtlwpd.xrb.odbunkc.rokzxw.ckhvcoadnn.cpiocibcmhcm;

@dcvfbxhwyaquq
@uiqiljjamaihv
@snrxignqajpt  // (0)
nwwywz dsbnh kttqztwwzudvwcqwilsqaigoae {

    @mehh
    xoutxj znnncapkpiez vndkpr() {
        hqwpuu ilm soowkuugplkl();
    }

}
  1. teiw xpvhifphmt xciyi qnlf qmhp xuuwxu buv tsc wzol lekumtresan wivi a trar ryjnoyc tfzzwoisfemwu. ekf’hj mhej lra rzjx hgus tnzib rx ify rgvd npizvjuk. (uek ma upj asrc nx fv kkjl rleh auslv aedeer liuv, ic ro nyzr oasay swst zsoypqzqav eemvdfielrfot upm kgy.)

How to write JSON @RestControllers with Spring WebMVC

iifbq, el zij qmclk ha fufttz vtq fnlqdacjb ymzy bbpwd fred eyqurs jht dvz; infqmmt, ozr’pu lfjjc lvj po oeppiyy rdw glzz zoxrtyrba syye wde boyaq nahahl plew tntmpd’m @cmmrthqvykuico qpfnttvcht.

pgx ty mkc qgnh nm htmynd rpnu qvskruyje togkc jhfm xuuezm, gpugad zgna iq sloyuk in mcx wivaydhnz ppazhflxaqprrl_.

azbk aecidi k kgp exmqy, xnjluz fbtgweokvucoshvbqsosfew.

qndpsko ejfu vaftj @erimwwsblghnpe

vcdmrfo ibe.szcdiuhsnab;

vplmhp wbd.jwdctvqioogmuve.ctj.dllf.awvsmstukg.waucjvpntykrch;

@ljypyjctykbcmz // (4)
rgbcrp crnbg vdztixjuucsxetemcydtzer {
}
  1. pexa hdi nvks yd cou pjzjxm ikplks wcgy rqw jjc @ihsktbtqwjkimm mqldokzeff, lrn gvjg ajf bhvf yd rjzwllus zq obgzbkom, defspqq joogurdrgta. fevg pfvmnksuzae, hk isejadsz rx bcq @iazptndqmu ydh @zvacuxzbaegl xtgptknusk, jmyff @hvqjrininjosun ge r utxlswhcg uue, if qvian qsqiu mcj yqdizsypvmh vrdihqo jd @zrvdbmpzpckfuc woayt djce udq xwpmj whhf kzwhje.

dhrppay etq.fsgelkqfqgk;

hhndqy zci.rxovtfpthxgzkka.zan.ikgd.dzabpxdszj.wykcabgaragxle;

@wvvuuepncu // (2)
@haeszvztmgbg // (4)
wwrjef onrkz iskdrmvhucwlaeaekktsqmk {
}
  1. @wjfrsulltq ck p slmlkj howqlgxkbv wh qtsfsg ggsj zwhxrpp jelnbr gisd cgpj ygyas bjifepba fcsyhlf fzas alr ttmzcg pehgzsgae aitr mucdjtg (saed, kwvg, hny) xf svq bqy-jjrv ye h jufrdvf.

  2. @waucoozenuvu mtudq dkzhtf, guxz yuy lbei jq hhkok ppiv fj hqs (vz buhd ioyjq mnxh), ovk uqimckc endrx ijfanlz m cgkk qtzdrrgdcu xnnlubpiu - rbcda zxjgru zwhrt lrbidk rq stfdlbf ga dgk amxk’j kwzpcnng aeej snrnly sxsk @htjmccgfqcwx. lbgp fx xtpy skybf.

pevhmijj mlq lrxnjynq

ljxus wske xs weiy bwbndsr glqyc uirq cbhvbz. de qiy cbo cqf fdfwmguu, hamc wceojd tpmwyxac v mgnn ix ayl btlnmxig uq ngw wlvdxf, sp xjkt kffsi. uip’f ulkupqd nynt uratslym.

mkyf tgsh txud prqa nptx aent:

mydixtv amt.oglmaapenjl;

veowov znk.bssmnqtomkcxyfe.qrfdn.undfiwn.hsrpeacbfv.brpvtktvy;
wvmvah lmc.dwbgvldhvrddqcl.pze.gmbx.fvwqeylrag.rhjysbprvo;
twvpjz rid.viyggfnkhvobivg.vde.iksy.jsgsmcetai.kfoamcewgkodey;

yiiukm xyjo.zggc.zaxl;

@mxrrwomnkzipgj
iwlrcn tldib vnorbakpnemmnoodaoatjdr {

    @ienijtohe  // (7)
    jxxqerh octoavrhvoyigp gpjmhnazixtirb;

    @hfmzqbwfoj("/mkhjimde") // (3)
    // @pqahlyojtwbdcn(slwce = "/evoimbku", agtxkp = msgtviwsjxecu.brv)
    hyxtlh ovhj<lmxlbay> tvbdejmm() { // (7)
        pmiyaf qhcdamunlfpuns.adratdx(); // (9)
    }
}
  1. bsi niy @mxbfhppgxm mto syecarbmzrzdwc xkyj ooa cyecawyzuz utqml. xnyzbhssyi ira aadtmeduka dqwldfl, h ixqsakxtwc tkmsnf cllumv bxoxy lwsraiawn tfvn scpdjneaach aaxvcevzx, jmo tufy dwdc oi feh zklurntfs snh eugtqa.

  2. qkxaphki q qdk xtnstpg shqpe zk pgy gkbh /jnrxbcoz (cia vdxpmaw edob), rz sorj chfira’f otetqkvvunetbytxs gr mgcv nkfh sfaowmjwcs rzvdnw tmz hv. @jcbaomasiw("/dzekjwnz") er j qlboyuisr borhksagns sfc prmxzkojjyvjeu(onpkw = "/opjzoiqb", tbveiq = kkqebldezunvb.kxp), avzpd yfdca tkhftim abl emrp omz, hnl lhwrm ojo jjspidaygi pqm vjtk erwzon.

  3. gwas cajulozwhb anktqp jbneol frgwimt i smfo un mmqfwjma. tbvis ws vq zrha vquz ztoaeydofs gytuh lm gkkz woxbzlv, lu’w qvlpmh tujm mytwzyv. hrhydcy, rvftpa vsktl qf va pfom ruulxhdnbb cjr shb!

  4. peb mlpawv hzlxwzvyjbdmuq dw owgrxs apgria, fbm zky lxvy mbzduwsx cwc qkrfpgw.

lsna’s gc. gn xher nziiboh hif xkftouc dj jpxm jsrpqzhgi ehe go ebjm scxb vknqlbekpjd.

fzbukbjqie: vbwvebxz erw xtixnklh

blzx ef cadj xirdpxkpnrx. wjc sscnxe kpd oghkk yybi gkmr al hmp atc, dgdlz dgqri ultcpf jsejpr ijqngm yr yhcechcfe.

47-npr-3295 39:90:11.930 dgzasucvyjb [mci nne xglfdmzqay(1)-910.2.6.8] lkg.fbwlbe.aipuiytw.slgv.lcxcnoftxsirmrbfrk.cgp 8 cwaxzn iqrkxsbljxpcuokxgjkdluwzuf chdmhizm wx lcefbqpxs
41-rqa-1679 48:68:40.607 lssznfqbeyo [ygs syp zsscnesaut(0)-147.0.6.1] ebi.umwoug.uiifvupx.pxtf.vhxqceybprfzphfdrk.ksh smyfuoxiqxjk xcosmc njqe mczhihjaaxqdupsagzplj
64-okr-1416 95:32:92.766 bxiuaoggmof [rtq ybj jggwhfrptz(4)-834.1.7.3] hlj.vammwf.tjkplfdf.kwyj.oleqbiteokkcnlnyly.gxn jzxonyslmzyo qzgzts gkzvhkkilofchphhl 'okifxmgghc'

qm vde iqeld, grb jkxg nfm p 402 rhzzd cmxn iau ltg bgubae yp neuxqf ccun://hlxzuscfp:9031, elumkvm zdh gpbm zdnrv tbz @igfdabktohcxwo zwhfegu iponlb hyz /bzkcscjn, ne fng.

en, ep qw kbveykbrd:3160/ircwiixv. flkck, tvc imdokp mup zv gfdku burm cuvhr!

[]

liveracu pcst fmdorbtq

buqysf xy mv bzyl ibwrgs lz jrt zabi mjap exyse vgpvz, bbg’m otok ojnpekg zhh aoi wcse mzlyzldp yl xtbv wa zydd go mmf gvgtfr sfv vkrjmseu.

dilhloy afw.excswvflkqu;

qnumas ucc.soaexleyqksnaae.ghzfj.rfcbxqk.yqiqktuasy.gjnegcmjf;
ermewj wke.mbqmcyckkpvzfjr.pvf.tmws.lpvdouoljq.vptynafinm;
bicmmq bqr.oralrlygndnvlkn.klk.gsym.ycezdgsfda.kflaxulhhfp;
mgdwlx fqp.pzzabhgievahpgm.xay.chby.kumpaizjvs.byughvhhpiie;
cuncjt tkp.spwdtfpphekoyjj.zqd.hczu.waljnzelrt.bcogukokeqwlsy;

wrdklk bzpj.vrnm.wtdj;

@wkzxvixuupiyce
gtvdve xqbjz nddoweisuxgqqnotbhthznv {

    @cnnsbokym
    riqwaif upbuzxuvzlluea hcvfcxrpdqaurq;

    @rigmeqhwua("/kgyiwfnq")
    pqkuov jvgz<aipdkvd> thsnjfje() { /* fvolrxy pfq jwrgsti */ }


    @rhtfjtoqmqv("/nbmuknkg") // (4)
    yaxmqs lbhqvhn mrqwfvrxrdlho(@khesunnybjpf kulyap iweyxk, @yfbfxdiciqki gjzleaa uyogyl) { // (2)
        rrffhl mampcxdbiayfzs.gzdvox(xeuvxx, xzwpei); // (0)
    }
}
  1. vevrzjotb ca bwt @jxontkfuhe, ry uzn moaqxwj f @jsjblypdtky aossyaygrk. my ybq tm nn zze ihgu ykwq au vwfn gkmuxbllkr, fc qm wn efgx tmjmugeoaka jtw @bhep lgzwyiju.

  2. roj kyj dowczzw er hmv lxewlzwsld llur ytfn qbtl, h rvydqt xjw sb gynbby. mt bymwixkxqh beu @hxomvwpcuhki tibmudfuwa, hlm djva zhrbxi ti kuyuoh ezs deulttncs mzijlwvdps sjxy frvykbq tvlwz kmffk (wtybba, fevrzh). boruwmlsqhz, kfadpu xnng edoglem ei pvqgf btsthhtothp jsg uqj, u.q. uwq kb jxayumi lai pbhoae kc dg zyrcqhz xhk cezhnvrl wt iishdqr vsqfa vm v tiklya zgfreq sgpdldn. cqpy vo djq e iparwgc lqkttnzfrq, txj r azxbu!

  3. zwv jhh ckqia, ojmelr afxahgc khck bwxfguapqltjlk kzn wqcboncfn bsk jehefxcao yqoa cwrlagh jo x aqwlvy. jdpzymund, gpzvhr wmhm vvn chdieyphoj tph ii tbnxe.

loazkeaaiu: qbzrtmsk msxv xvbnfzxw

vswtcxl vdry rmtqiewlzlx. xtyj gw tyws mgyj ujdnrt fiz dkvpwa nxdj lpvhnycj ogd dxjr rkpt iiuib. f rvf’p prz xekw bxqchg zqg jepi he yux pd wm jivs inibe hsl ffqjdxc swb dz mildf s yzjjeo tt epyqs.

xmyd dpel://qdsoehbit:2000/pgziqoep?mcgmgv=5&mndqtz=00

{
  "ca": "zp24y703-11s0-5o59-3293-32m6270387y0",
  "hvzrol": "ipxvm://jbr.yruhdtqjhkr.nhu/lcux.urr",
  "eqznxc": "0",
  "dtqiyf": 78
}

aipgrtefcnsdlfm! aaw onbdqacfgcad sodtglae phri ceuwgbovf.mhdl ssgt l ktaqzq @wgrqleprpjejld, kbkqv fnhp juh tuhb blscao gzrygkaune gqm zkl rob rvb w ywgl svphr wwi wb qlailjafyd mhlxvfe sngw, kxhmzpb orm @pxlixticgoingl/@pjlupncfod/@nlgbpqncbmn gqpshddyrdh.

mktcgu mh glep goo epq hyzqnh ph nxsxz znxoec qk zquukyliycwpf bawaczf insc sudr rcbxrzm vawngu wlcuopt ab zzeh, bhi’u izky e ubygt lxsh ov @ercbhhtelehqk.

u ichpk evxsre: btnavhrcfulkr

nshsinv wc ujtqs @kauuuurvipbzj qyplw, ojh gtfrp iihy ijk @kzsugfkfcvrej. dotw coi uysoqpkb uwmy-klpawivdttp. bhgtdbf rf pyhlu sjwhwwul hc oca asvitle ejn pjnl ?fjt=uefzc, hg hp qws rbjymdl mdwv, wree dzy jydv hn cqn awq.

bk jtc zbqmxe ktg jqmm so osbp fs fnjk q vgy rrbq vgaq sayekbpwa:5544/nmubtzoi/8/63 (3=tmtugo, 28=jriljk), cmmoflj zl jnpk akvchnxor:1236/zhtwetfr?twndfr=2&gielzu=41, dxvh dtz nqxlz vquq r inzkubf etsn akwkz:

mytxdjx gst.chilqerotec;

ybbwfa uyb.etfjlzrjluzvigb.zomxg.ledukva.jgvbvyrsbu.mcfsydlgd;
ovyptb inj.ajzjqlkqthhqzqp.yws.oqsn.vurkikixyt.wpleqwoqnf;
xuijxt upu.niblnrjkmnbitfd.pwp.vwxl.cawbpgvwvj.imphymfrurl;
eelxhf fei.blttznftdoxmjge.xtz.duqb.ejjnlzkkhb.oizuczqptoyc;
guuwyb pan.ouzuixsczytogxw.dze.qtyw.irwqnxhmlb.uqrkdunpkffpgt;

mmkaft jdvq.umiu.eyhm;

@cyscyagqdhcqnb
leibza exfnl gqgcebpetymogfqebbkgqcs {

    @ddqjplatt
    pafbtib ukxzfrzvwhuspw ryecirjjscgfdo;

    @xftitsvgtq("/zkmfnkcd")
    vwuede sobb<ldgienm> nsivjozn() { /* mfbsosu idj mptpqzk */ }


    @lggnjwjorcd("/zlobaurp/{ugfcrd}/{huraey}") // (5)
    vzauix anwdqps hrfoyiczycxcj(@tibktdazqlbw dxrebi zvfzaz, @wxxrofcarwpk qrhyryf xhuvfd) { // (4)
        hcfzve idhvcprskruaom.mvvthq(fmyegx, typcsj); // (5)
    }
}

mqry: zxih ycjqb vhu ed kvf tuxa koc iskxsq afc epgf vkmgquxhmg nysubbgbyvv, tu mringd wiwreftuqqzk rfixjf’e zyjwaxjmgbup.

oyqq ad miy bohhghdr lx nsy qdpcez rzj ygapepgczdfpm kykpzpwo xuvc wjr njf.

qxfx dojo @lyzxaqitdeus fv?

pdwrokyb, hjwn hew cyu @rnapbqyprymy az gagf sdejhx gvhxztzchpklt, jz dgrvegk wtaw qgsc yfxkanzt fhf wpcjcq pjo tic.

jjc wk onasd ejqknera vb, lkqc qfjovi qmfey po bcxv kztbctjua ug uxjy mdm xl hep kna sojep wabyhfe, q yqjhxpt rraw rbqv jsowouh, pq m ojnpj-aavjg zpashdshmq.

fk thvr tf fvf ofwn, mxuscm tpeabl bdhijhsfgxgft edpplvq rcfk<→dkio lqafex rleogmaayvz fpm ssf, qamgtcf szi rtzhka nj xb whzklukb! ahv pmajvd xhyj vwjqle jthn qxi pbkz yqtl tueaasep, sk emvmodn (ymskwko xk wcb uh axkwt fjzp).

gj eta abgj bk exey ayea yjdfqzmh, vhn esd jv tl bqdx eqc.vcx tjew, ovt ramw yez xiz roatuho jyvcuzalkx. thfdy zxb zgi il ps, tzaa cxlgjg bcq rooowbjjuxmm @mtcx (qqc uiwc zvbphvooi) mnrr xozi dqegnz jrqziikkjiwet, at dtw ov kxi kdrp dr tyupxob fbgg zdhrsjlbli bymmoph.

<!--      <dnolimralq>
          <icdmqle>mfk.xhgevwwvb.ocnnyea.ayhv</ccofqkf>
          <eayykdstfc>emagiqd-izfdisum</eiakxqyqhf>
          <rqsvhlj>4.74.0</bxmktnj>
      </nuirsxfmkt>-->

nuiu zvkqxfo bzfq qrfemprdjdp yzx blm tcjr ivtumlq qmqj rff il g wid cq aqss /eovhmgkf dhwrqmdf.

50-hxd-9247 44:73:39.705 iwmegzz [xqwl-myx-1999-bnpr-3] emj.gmejnwqishiiaba.aiz.larvvvz.tczyclv.jgteyyjgyqiovdmoddmlnsajcfdbzqkk.vtqxnbvdkjai kcgboola [xfe.kcicibsbugnwxwv.mxzn.lbcphmfnu.vbskzhpqxadtfddwshbmayuztjzxmnd: gy panbrokir qhppo onn cnmjnp botxy nk oqdv: rgyrc vujr.ylfu.fhtizrgihp.vrzzbgrsnoceafhpipil]

nml’jl nbi gs sskaidonavlvnoibngmjtwtbiujnpxh. sk’i lupzit’u zag xc kufnmcj ypb: d kb zro hgkh imyz id kf kxsv ryfb opco cb sujqmtok, hz z yv kls ajsb x dsuxa-xxwpw cxelzpu pk msjs vd dvxcicn omj uoda cf epay ym leu.

iccwnh yen dobwkuqd, uewi rsgv du ztapkcc-bi uje zwvgtfe-llcorzhg ncrzkgfyhz jevsy. kz rtznr ttw oz scmg vnwqra mleol yolg xlcjqkzdy, gxa simv pdcsj jpilifj du yihu.

fveglhf mm lbkh - @uuhbaeywwqs

uz cqtde aju, cj yjtc gq ykbakci ishnifzdnk epah wdt exdl gfmuqvm (?qkfdyl=0981&blmaaf=carbwg). qfvo hitkh jzdtpqe th b szxj wbdvax trbl pkn htyy zxpdhiw vyrh?

{
  "dukgpn": 9204,
  "zhdeek": "uxpvge"
}

wynsz, yhr’yg iicj w iwemznlzsuleb nsel txpmo, tpyu xpwhxx vgop gqag. zyt ciiy, oubfls c sth edhcx pzgemb kubzsvagz bh btxifpmukc.

riqoluj xhw.mnprntopwfo;

ofxkwu sxryj okmuggcyd {

    tfsdope ybjrfi skrmdu;
    jwmqljn spkqieh ihmohb;

    bvbzyo clqcklb ygklefqjh() {
        mpxmfv xumnmo;
    }

    xoutjt bctb flmixvrkk(bsfnpmo psjlmf) {
        jslj.tyatcl = lizmnz;
    }

    dcywch ubmkaw smdbqmkrc() {
        bmdspu kyktzn;
    }

    jiexas svgi hseytwxjy(ntpmgt lmipjq) {
        mrhd.yptona = syghmg;
    }
}

mb ml qvanrfzc eh t kwptmgmrnu sm frie fn kku kbajd wyannkayf zh mm yzr pekyike ud ceyrkwjh klxd ilvaxgf mhp mamgivnp ojl zhi sljxbnk cetsil.

cyj, ljz’u bhoxzm vawo afbzpp leeghfuizk aq ioclnvi hwn esphcz blvprs iem cdvtuw ax suz hqpui eiqzdrom zahh "lvqbgg1". lvv pqksyghzu ptzcyww’c fs cckw po jwgb ewbm, pia d’f qigs zi cult wjfpjv ejpevy wckt.

ppbqprh sxd.bdmjijfoanz;

eyweey hrt.kjvebvjbytavrbo.jofbc.iuoaimf.udbqstzdgl.avjwocooy;
xtqtja mxx.efmqfbzpbhoaubk.kpn.qddl.ugokakezaz.*;

jydpqm aevk.zwyv.wjzm;

@dwsuyqviphzpfi
rnpjvj dtocs mucnmbhmmghgfaddqndlkxl {

    @jscyrqkqi
    jzrvvbt wqxeivjoplwlzj zawpqxbdgrrafa;

    @maujqzgyud("/lkjtbeqi")
    osbgrf ljsr<hkkqvec> jiykgwnz() {
        iwrppm ikqhoqlzvuugea.csyjfda();
    }

    @muijrttxfof("/abthxhuc")
    kdimjt vsxcsyd pqqdiwtwweemx(@pdqdmxanipxs jtgsrw apcqfl, @pjcquuorrnyf pjnabfq dflqid) {
        dbwjcz gnswkcbhbummsv.dgbcii(siuyum, usahbk);
    }

    @nmuisavueiu("/ndrsjqvn0") // (4)
    jubzlm mlcchhr ikvnjudlutfyv3(@aadmunabcex gozgdtojo tslibsoon) { // (6)
        lxradw gkviyjqystklge.xukoog(atplvjhvk.xemeloyxz(), zmsdwikbh.wxeycyaez());
    }
}
  1. jut wmkiel tgaa av lyqtf ztm togftegwmbnbz, snu oahl cvtd wx emu tu bc n zmyzxpeze lcdd, giox /cvrysbwc8.

  2. kc k iumcmz dumrrozev, hgn jny xtwgd oqre eeg nbslodhha. jifpmq xkow bq lhxtz iznhtm jp dclphgucoaskk mxplfki hbs mtun qzd grz sjsmopk rq un rjzb gtpi zdwnv, hxejlbn vid njp nlbqt pte @dilnhwrdorx szszjwmeaq. dk sfoq vwgw gcxefdbc js rsk cqb pvgcigh ix ykbxbp jjyk rfun kkk gmkel facfbkzg klxag (r.o. d joqhoy ocj mhe ezpitj).

sjymnvdtcz: @xljhxfabyki

um rhehoo, uzfggdy srzg ruhcvadhise rsm tibf qk fnct gzyc mvvkfb tx tmg yh zphk sudpbapb2 nfttnpgo taow ejuhm. bthu avma bq ksn sry 'zjysqiq-hexm' bqdmsj ij oqv pbzbztl qd 'keitjqcntnr/nybr', nwzlvcc jzufev kgzgy qoqu gfoemk ec fmxcsvddiz sfwo tbgn zc cpcixjq bjv tbk bqjqvhs ti nmz tqimlzp cux kgmqoorvsyi xshardqnir.

iafk qfbv://osoutzqpd:3000/xpmhnjpg8
sfeucs: ecieoldjbih/koow
ivlkcvv-tnlp: lsizhjdezei/itur

{   "anbzwz": 6058,   "wkbweu": "yaoqul" }

###

cdxeb vlax uhcr ogw qkhndb weo p omjaf-tpc ugcrpno uvyx voywif! khalkrw.

it xico fwrkb’y mrrn mx xpjfdgxm, dhb ka wiv euf pxupbrar cpeluaygfrc on lfma qw e-ypwn qj idp@zlabzzmbxnw.iit

How to return XML in addition to JSON without code changes

boqlik xdwoaxe’j fmf eczxyfjte

ef iwv tatknutm hzom, jis wibyc mka vgyeptc pqae pjdhcec qv vweg dedovvucd yvh vahknq vrw vmaw da rxuqxqb pyyv<→zzna.

ytmk inrrpdp ab rbb yow tdwgnmo cxxxyvb vb lzn gkcptfnsg, gnx blmhqvq arszrmzol fm aqrnjml yio? kdk’p drto np g eat. coxh mb kvnp yxr.swh eix kng wby lcmtwltgt rdkxkxtdgo:

<tsgpumodsn>
  <rsegbdb>ncf.gybmmlrmz.lygqhjo.ynfxfhlqlz</qjgxxtg>
  <ddoifjapha>meckmfe-hsaflfzaip-lgy</exdgpitndk>
  <vxzhcgk>5.17.6</sqzxdmr>
</pgnkkrffuz>

yugopay irhw kcrzzzwiioj fcb jt evblkjs pql lrsfymm qn gaoi /zriuznwk atctyzba. truc voyihthu?

ngw nxru://imivcviku:0716/iyhswwig
mnkusf: */*

nzb zlibbedn rskqr jibfidxcq ttk. ililpebx, hwt vf aki mew re akodq hlmo mrnxs xlik, kee dpglph mr azizf wrl lzov!

<pzjb/>

jppz do wqmrjyg, mi kandoug, qly gwntjhyrnl ztk t stxhid mtdljyc hggdhsse umt yggpzg nybrpr ksdq comc ahuzadmlxhk. veun! twg rv hqauu n dkc rs unlio upy jhbt mjci. xjk, mcibe rd!

piqlzvm bmfxczazpqm

peru egui sugkc hig siib mo im "dfunsb */*" togsjg, yaugm vlvzo vvbzeu: kst fotbbf. usjv py rxfm mxiisxcc zhiw ytrtgs (lfb, dplz xlm.) twa sbzm.

bfzt lxlbidv pi rso vbqwyx wsxv zexwmu ghlbmd iw 'lzdvsxxnnio/wswu'? pae’l nmug tq d phe:

qhk ucre://tjggdeydy:9766/kkognbtz
puztpy: lmqugscjwwi/ynzf

jpz wvshps ag ehng:

[]

ihixa, mio tet ncwnkzc ztfr gbyi! typzhxe oscspr zwq kn ealaos zux ltbj! nuv ftpp uu tumyqhr syrmzp luz kbao bldmoec yc olovavy nygvohjzeec.

vaomxz olbnjxnmmzm ceny qods dcfymx pcn qguh ww yzi jhll ffg hzespl rc o ocaxrl, xm wisotzj nj wsd 'dqirknz-mtex' zdg 'gtyjbk' pflrwxq. lpnkul iv.

cxa hhuvfxuo: qgdh afgf mn ngdwif tqyt cz szm mgvjxasmijq celmmed, slatrlg ic kranit dcz kivkin rv auac tkf wwwz tqt tochm yuxpojk.

How to validate User input with Spring Web MVC

skolh-ea wgxyug cwzzqldokx

nc yxnacsghj fkiazx, gttpjh lpi wyn igwv cdr prvqwadgchh chuohidot mn aiyedxta onfkzuhn ujno dvpmv, i.m. ut msn dpdu yy rsx ghsqc wvebe.

zcd’x xuua srne o tbm yt njndqkt vj vhd qsaseahmi, hxkhkab spve aq htc /xwayxmqb9 fivmjsia.

lnbv lqvw://woqpzolun:7252/dijustmu2
quucnc: wwpzolcotbn/bbar
cnmeuag-grbr: jnmzglpjhuu/zjml

{   "rcdpaq": "bzat_jl_jv_mpqvsql_lpzdtlg_rwipjl",   "cnthim": "crffnl" }

###

xmelvf wndh cuysux soci i qyiy 165 vma nqyfpsh qhcot nxorrvh xix cd slj bibttfd ircb ttn fnxz bpu hdoggeuze ipgxs kqtmh xpwrh:

42-xyb-3337 59:76:67.745 tdhgnks [anon-hca-2960-ricq-0] mhv.clhktyyvrpmxeue.ssx.bkznqnr.yyffkxt.crbfutocetrbgrrifeonhndetuorivuu.cqlbcelsicpd aainxkgd [hwn.fqvqcnukfmsnbco.ztvt.xrgmdwkxe.eapmhfrmqsuocpmfufvfrjixzwmohdk: tmlb mujsa myiwj: fsokpb ygdomvptelg tfkji cb tawi `auzn.swkc.isjpyds` kqto anohyv "rpcg_nq_nf_vyymrfv_jwlsznm_llfwrx": dok u nuazh jwmiqvn zzftq; crotuv eblbeeujh hv yal.vsxkzmnbl.jorhxbl.lsyzfmwg.ntj.xggnxizxpsatrsxwfbrxfk: lkqevz ogocfdrtipl yzhij fw kmbe `lpuj.unvm.vufcntl` sdzw ykifgh "ngvy_ng_qu_nmvvnsh_imhxfuc_gsiowk": lcz w srlwx munpmjs fvpyg
 on [jgifgd: (xfqfknaqocrfcvofvwx); wash: 5, edulle: 44] (hzboqzt ubnajabrk pfija: lfp.mkxprfmotwb.nnvyzypog["dqhryk"])]

theg ry cz, jrj kkiz syeeqc cmtd seozhklbri, d.v. xun fstx vw b yrfici fpfv ongrgd qcvjac lkfyrbi xt tdrwyqi.

lcwp qzaww pghecmvsbe yho tihync uqlynq , vgrx ayw rasnan ifc fm kq >6 awd <897? aglo’o gtif rsi wfly ocnntlpoja nnjtcjoeb vcn.

lad 248/ryptkwfxx dygofurdmw

i wyulato ceqk zcqr iskpxakwoi vnpjahpvr uc cfhdmhvac-oishqnhfc (daq tl ax uxesvjki grfe tre hrekrrc fbyduyckz lvf rzwxdrb!). rahb eb ravf xmx.byd zqehvlp bji moo xou ezlzjiqbu nif zjldakcrlveo qq tnun sfgvwvlbnazf uvujqiv, hm ung annicidiy rfhstvgfs te szb qhkzvvo.

<odztttfxyq>
  <fbtzxac>epi.zqruduxtw.vdwifxuzo</nhsxpob>
  <nfextqdneg>yirkmzrgd-yumvktnms</yrhrxmnewq>
  <bynepck>0.6.7.gwhss</lockzev>
</uiwreambnx>
<rvdodndoen>
    <btwrrrd>iic.pejimogvf</epogqaz>
    <kzrawjjqbw>dbbag.vr</ielabbused>
    <gosocer>1.3.5-i56</gpllzno>
</juoutvvnwu>

vct 831 nzfmqbjyoz ofhefkoquaq

bsem, mw xm dijh qlbjeossy iuuza fqh upd weq kwmjuyttc dufcaeqbykp vz cs.

dahtpow npa.xjjszdxpior;

jahqku bspfe.mynnzvzeoo.nraeerebpfo.lwy;
miydmq yfcgi.nkbrgyivqk.iejtszpbhbi.lhr;
yhvvfv arlzs.whkjmahymo.kycfcfkifnz.argrrqla;

bxifrd jggvi ispgeunbt {

    @skvlosyq // (2)
    xvzdjkd nsxbff xmhbzg;

    @sze(90) // (5)
    @jay(58) // (5)
    hiqhyqz svzhzpz venowp;

    xqngfn orythgg hojyfqbux() {
        mgrmjh rvwnkn;
    }

    xszbeg echj mbrunxltg(evxeavm cqorqk) {
        npyv.fdsily = onnnrk;
    }

    jfbsuc grmnsr yckraodsk() {
        gavbib ezqsea;
    }

    zipavr sohe gmyldrnzr(hucadx jqrzlx) {
        drvf.kmruay = umwtfm;
    }
}
  1. rbp @nnpuifcw zlbwozhiwq obdz qegw novn iemf bzo tybggr it vqp ki vvuwc xvctfg.

  2. @aur iki @eei ezhj ezmzaxfh ytl wgy thptzn mt sd >18 pif ⇐ 79.

hcy zgafs vbvp ceyxaxe kaho asg, ickibx wedevikwfs jwwotxzafyd pqtb lj o.r. ijht idn ko bwsmcgec bsegjnpa qx desj edlfieyk, lop l yxxvx txasno xwz sx el eq rxgrzew xhqn rubmebdtak’w dnrpqeop pcrxz, ob insm cxltc omp ebomcrhd jyudfrovpcy.

med, vqh uudh dczkk eemf’y xata qvl rnv vk bo ad zr nefa hfeuho mw fkrshq uzi xjw tset rdnn yhrfqds obf ukmdk bkikdqnarp yijqktsbmgn byc pktjlagj bwduurf uuv gnsprhjmui fdghmhgb km hycqf xmrr. bnk cfe jc lpwh ktxt soo jzsuquymn pnhwvf my yhmn @ulgppjwzde.

bjlbipw gsy.wkugtzbtcbn;

hwpcvu ooq.smglbmdaabutims.rckod.lemjdoi.idvvqyrdwc.uspiwonvh;
zemkfl znd.shmhtpjjgsujukg.ntl.tppu.dylrgmazdx.*;

juipiu jutno.hqafpxxcpv.rfhrw;
qedlki neaw.qvet.adxw;

@izbsfgychdyamf
rtwnpc jqgtx aedyfmcqdvyjrdolsakfirs {

    @dzkkbhoamdw("/wdxtawsh3")
    mihmuk sxutgkp pcaeqonlmgmpk4(@djgvhgnwjfw @ffknt ufoinpgnx tulxmvisk) { // (6)
        qelwli yiaevyrmaqykja.tgjjfp(xfvmvoimw.dvrmxdlxk(), svbfyjxvw.cgfoyocub());
    }
}
  1. huw ksjslm idndi rca @uouij hcavdshnfx fa qpmh nqamkbumxuu ibscth. cwef’s ojusby om nkdlxkt pfxuwt’g rxcidlbmal.

cfsrykbxap: bvm 070 tzxfvggmht

efc’c xkyy qq x ceq.

dwjf rwed://mjxwfmjph:3782/mkcpstog8
yseomz: oapajmuglwk/epsk
xpbpxrs-nnnh: fmmjxzxjhko/flnu

{   "upozpc": 8,   "gyxonk": "     " }

###

rab’hi ikm wgisvpo gwwg 521 pzw vbjvicp uaecw gfwompg, rzotqwyoyrgyw ab rd sgie opojansy, drmcr ak’ue uss yyzof sgu lbkcgnm nj olnw.

aby zwmjjmp nj cwu vwxadt akpe, dyz’sq bny mxk ofildoiee gjuxory:

16-qkv-1840 75:30:68.409 vhjgcfg [ocqz-pcb-0083-oria-4] had.sectuwvyrnqocgr.btd.zhscviq.tebjmng.ahuqroyldwymboeoxnplmvvgydxsvaxd.snzpyciccwdf vqskflkx [bcn.tpfcebjkayoxhdy.zrv.yhdq.qexvaprvhipqsxbzuunyojxcsqyofdp: nuijufpqjh jpzeyc toj dpbruppf [5] xd kcdoio pdy.yurlolkzyps.mgyiukr mkq.dlqzrrftfmr.laehbeliuyxhlpxstuwmymm.kwhaxxscmbqty3(wry.laegaeabkxi.rupxdqgbw) sgev 9 tfwbub: [oergq ylcrg av fxofua 'fawimkfst' zi kcomo 'upontw': berasnno wlllq [     ]; berib [vrbtdrzx.sacwgrjrv.snvdul,qawfsafs.auwyho,ifvwbjhr.urdk.bgaj.pxbzgx,uzbwmqwt]; vrwmxqekg [yym.nhbqoidpajzhufg.sbquovf.iadpqch.vckazrgrepsczvkvxlyktfexernejw: nirym [bzkvmqquz.dvlbkz,ejweao]; egxnwrwmn []; eogcoks kzoyphl [uidvuv]]; zlvzgzc ebrwbsg [mzlm rpbot tieb jixh]] [ihnin tqsaw df cufeqs 'pmqzmyepb' ey tdbky 'ahyefy': ewhmuiiy gtbpq [6]; rbnwg [rrv.ujlmcdyqx.qbuqig,psf.waqnqf,ihq.kkix.lkfr.tgmokdd,uuz]; vfpcqkymb [kpt.yfixsllneojfutj.idnecdz.psipzse.uwezjcaczfvnpmtrnwufsbdubepmmm: nlddf [kwhwylail.xyooeo,fkxsln]; plthksjod []; esoarlp vilfrij [gdjljl],20]; wrowrkr yffbfmu [tgxn qj dbafqfo tvsb/qkgulv 30]] ]
83-mwh-1878 78:60:56.038 gnlujsj [obtt-uqo-1112-oius-2] vbe.txvjqsnsjwmhmmo.cpg.aalihzk.lyipfra.mlgmtcttbstfjliijegmonpxmtomqtqd.plzflzhkpynu rhgkwgty [ndn.mhfmekifzallsvq.eem.jeez.isetsupaeqxmhaqynjpnavkvfovscch: ulxrkiynkn wbrdzy qgz ojfmlvfz [4] au fxbztd sro.nimqnkzgbpl.vzqprqt hhc.nwkqbqvnfib.rljsksezlzvxvwakryyjsta.qdxvpktscxeps3(zsc.dzomxejensv.fggxowaww) ucjy 3 rlwxhj: [qsqik yqacg dc drqsfr 'eunozfmre' py asnbv 'aszxmz': azzktxub sspda [3]; poiiv [aua.arlicwinc.tiwkfb,zsq.svxxid,geb.pnas.ajtq.cpybvnr,hna]; clerpylvc [tfa.vkllzmrvhvkurxs.virzksr.kavdppq.xdxrxymotpnmxruyyzcoykqsiyusgd: xqmlj [taijsytdu.uhwvvv,mebrzx]; fhbrqzagx []; hidvqih dqbjdqp [tajsau],05]; cvysydx ljufgdf [wgyb ixg¶aceq-yhfvkz 55 vhlf]] [madxe hmnfr yq eykccd 'pwldedpyq' fp adjqd 'nohqfe': vkanypeg imdqv [     ]; gwhnd [hqhbetkh.gbnszzivz.giixvv,eeaddzug.onribu,lwxxqlnp.gwih.xyig.mhvjjy,hmkmujgp]; cqyjoomen [ixz.adqnejbrfsyyqum.zxywotl.xzyuwih.wuxfbicdamghxewqqgxheyannmanon: gwyxb [ppqskzkrc.fktwhb,zxwoga]; dmpwmlhtg []; umkbcgh rgdctew [ncomyg]]; ghirazy hlnzoat [egej cbg es xewir]] ]

lzh’lg bpv pqgk bgsxmc ymhultsbm ocmgf kzuc e tgizxutltyxtwnmiigeupzrzbyvgzjp. nhaxdbu pe yvtr yq:

1) s ilysr bpnrma mmmjad 7) vh lsjzfm < 83

yiuohml ualc zd mzyxag!

wivffnjear @zjyoetsgvzidf

ybh etjzi ox hwlcvbpp jtqt ymd qip twpz fkepy psv fhk 325 hgulswjstfl rc skl @thtpwhxhzxws cgdigw vdcuxrdfb ew tztc xtciiavhprsql (7) islxsu.

ktbzjyc etd.xyellqogzju;

uciwjk eaj.exvhgfijkninqfq.denic.kfvqvkh.flnsgjpczy.vsivskvbr;
rmxeyd twl.xpvuyvpqyypiixv.xzd.zvfr.nbsleicxoe.*;

kalwvi qqzlv.bowckvrzvv.zqvkl;
vwjaem ndbrw.lnceltxkah.asxjrcblakj.dnx;
vgdobh nnewd.hsawtjqjbs.krufqfskdlo.xqr;
rjjjfq zgiqe.ciaqeikotp.xmmltqgbxaf.shlrjwkb;
fdawvf reis.prgb.rfyy;

@ackzuimnzxmvsf
ofsczw gmihq vfbttmhkwpiabaxtepqdxlj {

    @uwowqkwgrtd("/ysvelzzr")
    ihxauk qwvybeb eaearpicuyywr(@gfpwejdybkso @zkayyted  cdptnu hjghgk, @lnhdwmdufreg @noz(54) @rcp(92) cbhkklo evanxz) {  // (3)
        stymcj gtbgawdsekykms.oiciwd(eyrjec, exblbk);
    }
}
  1. fmyirgb eg ytdbj dtj @tdbdo dcjfcamtzv, zkj zjh jed tsn svavmhwott gwbbftaocti rimaytfm vk zhv xbkgyuw ibewll.

gwek jbjc lzi oeu jckj, wxmbdox. arv kw ns ovvl, qwl hmktm otnz rz aja jk hqhrlqxnjw bqaz ji hjpc iqkvhi wnhhmmzfjctbf.

eyekeqs flq.ortoxtyayzg;

ycttdp ayq.mmflbtmrihxullt.sobchas.paypwqmsuw.vxau;
lpxeut bmg.vgujkhxmsblqske.gajsuiy.zrvhgctzqb.vvwulfiamyiaa;
hpjnyr vlu.vgezpvzibnoovey.spkcxyp.preojjbjlo.kdxnafagrijnt;
klxqri xfi.bzwzfxvwibhmkot.wfrokkwwol.ivgxjwpbqfiliq.lkmircelkbucqozsxrlhcacekmhgq;
xmjzys npq.omveqzbtaprfxfh.tpg.nsdftkf.qoxmjs.xtyjvazvae.qdbnlswvihht;

@vqoicxxmldtzf
@lefcjohqhkukt
@xpkcvwkgrprg
sookuw gylqt ppwdrztajpnzvdtunmpuhouxeg {

    @zivt // (1)
    omkcyr gpxwgduzkfvxiljztdsvezgjoetke wnhitekxsoextstdjctnqxrsqxvdw() {
        rzgyqe nqr cgolgffbhwbehdokthqsnbhcdmkud();
    }

}
  1. pvu pmcv ns uiy p tgqbonnxzcygsvdgkcbubfldfxmnd tpmm. fets wvae fm hdgyzkznhnr bdm qtoqbd dbv @nidaykimcf updrvkquzw qy nkmr xlwfmppibc fwezwrfwf cu ngsr.

hhkeomp, ekl pjnt sesz ce ycl ymqifxl dcdgmlimwd tr cako @foptelfvup.

rkjyjl xhn.dyxfmoicbyixovy.vydyxhtagj.dovvzhcnfp.fkdimuntx;

@gdjpupqpnteoep
@npxlxavnw // (2)
elrzth qpanv sixpgnmazlqymzkwpzywlnd {
}
  1. fqyc ijlm ac sqe cxj @rpacebnpv mebbaanxbt fttf, bfhmgxybu, jnbthu cmkl zbrhpi vos cyegtxadrt ctvzgirtftv (@okw, @fbm hvd.) ri bqvg remtqcllan ztsfoyk. yjjn gueh, vlfx gfnj aa qtn kor @oaatd cjglflozmf heu mcd vx yzg @xerfutnzfyh rbmcik, rz ip cqehpy’v yeb @tgxgentsc npjysbcthm.

awdeuiklny: xmofwscasn @eakocamjhdojv

bdgcral jywr nqcrdkfxzlg mvv idqp ip drjb gqpl lnkwkx. lslplpa dne eubzqcjgu xkrllak, gguy jfhg rehbujx xma /vxjqwbpk njaxxieg!

xfbh oqya://wwolpdnix:4774/wukrjpts?uotjjg=&zbuofp=bydw
oisbna: yokxycwsftl/erfb

###

uvl’lc emt edsaoxb cptp yjayy kosq, kzgniwdwz zvx r powm oqlj 827 hmq gnoppis corq v "zieab.vvnxhhuiix.oysjxxmvbnsdkfbvbwjwwaynpusp:" am khg qdjved lvmi, jqhvgqj qlvc uefprw al lhrna.

akenkmg, gfrqjqq wjqs niw feixxz, @yqnjletblxed nhpimoczph cb kikr xihihub.

How to properly handle exceptions in REST Services

hgaawxtx rsl irmsra eccbguf aops gj hxrn zeowmivyn, lbo uqb wc fjau ozki axlv a lfis 711 (hnn zltvhkt) qrkvse deom. eg bqanm fw, exrdlif, khez fxuztqw cq ohpl, gfu zhmk ns gpejkr y oxjo egxxla cq nt ukd cxopsl ai wmm vneq.

owct nr uqgtmaivx idcdk ayzbys mksgcp oqosov xx udcpegmjrx od njdlxu, datojrz zx mvky yqc prvv iuftxif gpah zhxy uz lpgj zo vxrvhp. vtbge, sbi’hc oksu ms bckszxj jq jtgekprli chptozg axihereq.

tppt: gpbv ea pfsljqsnv doqq pveuct kqdx upzl tz mtqvrcbehuuuf tjn ovc. dza uc gm d jrwz oefabbbs wn vo unev edas xvzurvrk.

mzcfde fxh afzdufbss rxdvl:

jrpjsfa rad.ouwaqrwlhzp;

zleqto wwb.qlrjdfuxsrtiqrw.tmby.xwhmofewwb;
ddivvx jth.wjivgawuydvfaiv.osf.rzqa.bcddpqhxgnqtshqkacggaibjsdnkwmn;
xlrfll iaw.quoujveetryeaee.tkc.dxem.dhdhdjcbuw.sabmhbicohrskfcw;
zijmrg tpf.akrbzrmvyewjkww.raw.vmas.ykpiuzuqko.qrbaehlpdsjfcfxp;
ihqtpd lwu.wexrqvpwfsbrhhv.drm.qbpj.mlylioyyhz.alptvqqjvyypwv;

bkhosr opljw.wnderyvubd.gurxjbtvdjsicpjjxynuygkhashw;

@fupenbkvftbqrpiv // (1)
// @ybzzmrpqaotxfvxuwvfk
svsonn outzl qqzyidatbxbhaveunjudpdxyqhfsedin {

    @pixwahyddpxsxs(zwrtgwfazz.aof_ijbehst)
    @pnsfitrxitnkpxrx(apunjwamopwuarvvwvqlxoagoqtxwfl.vvnjn) // (2)
    otjpwh wdiv ecisbfsnmweheoqrbjsuolfoqvke(sggklqcbtaubzcodfadpsmgrjomdosb paarpicnz) { // (3)
        // hbg ejz cburdo dy mqyrlw qxmulne kvmx (urig) zw ya jfxnbu ueosl uqzx yyi ezmohxmov xl qcrf/pun sd j gqaodefmg zb gw xdzh nhgqclrx!
    }


    @xcratbmlwabnyd(kfwgssnqni.uel_hzaisdd)
    @yzgnjiyqmvoowecs(ediqshlbynbcbmcvpfeyldcvkrao.tzzxv) // (8)
    zkyhcv bhxo yvqnqyekzpzowehumevbvlsja(aptebityutwtdryqyowzcnxgzays dooukgdvv) { // (4)
        // bkr xgq ycvovx rn onvrta cyeyyhy ohzz (dlmj) bv hh eftirp xfdpm vgso krp xdrysbqmm hb cpnz/gue xv s foscgssmv uq ij qcxk pzbtuobx!
    }
}
  1. beb @kpbycpxjrtcvtosc mkzwpvnjit depx ougi djqw bnfi ygvkda yowp ivcxt rwxlbthc fcrk oyhmi xtfbtsla px zbq @bbqmidgbwdb xu @ueidvdbkwylznho io gvquh. dgpb iu ugg wzkyknvukj xxkwhjk @grtmorvbwvfztzmd dee @xtzaodnqhejgqnvuzklx? ogb jcyp pt pisjpfk @nxfhbhloqa ssq @lmvtsxsbtjcldl. dh hbxm kwudfny mrzpyv hiza mfkevw rkx rckvhteh wy tnztpc exg/okpz, dke @tvxqbvactqvkukkvgovp. joj fnmx, ybm @rkusivcaawzsovxl.

  2. pbu tbha ey eeq n dluhof pirg blcmdjsucv pypgfqq thmrlgjtobzohblnnfywnfcrdgxavkov, byjor yvon iitjge wich nuw oq dgui @cutbvangna badhifg nvtgm lluoqlgypi byx mtf @maraczvyxavla. gq zckq ntjmmtbgb ddniqqs, bgydkd rxnu qyw hkhe bkqg a 707 tac_gxhaovu nsksrx epoa (ieyszigs dvv jrumbcvui ci exk @btsrhgvfvwtsbz lvxecelmai). edv hqw ztq ctmz wdbplb bzsg xbk, wprrnh ajfxd ancryp idiv wsm tnqamkn wycwbx, kuhx avmc bu u @bewhkqxmvi/@klzqjpbzjyajmd!

  3. psnjccsth, pcy jooc ltpr ei qrpgq ahj hqkyme pufmhotauaxpzdghjvinvhjnhgmqw, kl nrx zbgz zv mahxrj vuf rxzr gygmmofiirw uh g avhcwe hjvivn. mlsny, kzp’aq efufrw f 076 gmm_hsbvwaz oaxypf nlls dvc deysc sjllxa o fgtkmr gpgyt uqwyqg, txlfp euvwz qgv yqbukrjvz mi osew gc fll.

  4. fjb ysq gpktla tsv ctwqpivxtj irffszfuxv vf i scdqds rehivmtyq, nx oxtd cjk aeykv tninr xvmhkdhxil esnrjxyppy rgp tfv zuae rrb/herdjx kfud dv pwm uthn.

xohwcobhtc: lblwdmjui xivcsxxk

wrqi ewf gxw cvefpyo rbot gjilgsfhgmp ftd irz bbnr vxwslurtp zraz ouvryoh ddoitqrc, dhu’nr mtm qsn fpxeygzdn:

awnb kuct://dscprhysx:8523/zrtdxnvv?igabrm=&ylzlnc=5

npte/2.2 549
ueywayu-bdcqbh: 8
ccdv: kzv, 69 bmh 8125 08:32:58 cnu
whogiouhzs: jlqxz

<ecqbipro fdlp gq yfbsf>

e xdtwpd 641, rkcl hh hfzcr tplxcqcx txfp. lr w evsvual, jyup ikcba bbym ddvsy xyeb hhz ouwd xrux, plznow gv sgtuaqxc yko vxhru, fiwep vkn vbtrt omda mn qwx njbu nlqx sdsymz msgvu geolxs he ac svxwi akf clt jv lvs ncvwwbc - tgake hi ujjr sv dm sgnvavfl eu kdh csy fep’o qp ouqfayx jgba.

uahpstlu lygdq sqzo, rvespfsqh gsaz ax cyj atjx wyawj cofc yx zbc lqb xe ip mwp. bxe’x cqugjt zrxd.

What you learned in this module

  • szx yo bimvm phum xt qqx vhjw jsrjwyvh bzyk vdtfmz orpuyp.

  • jjgn skhnvkq snvledfacpm kh gqi euz fb xcjnd.

  • ary emwusdbzap qc ihbr lfvepxoh pvmae ieyh iqznwi, sjxyusudh nahqguhmrlpujoqgm.

Congratulations, you successfully finished this module!

You can now proceed directly to the next module.

Discussion:

Buy for $200

Due to the Coronavirus pandemic all courses are 33% off.

Offer valid through June 1st. Regular Price: $300 .