package Ġxyz . se ans un . ram but an . handler Ċ Ċ import Ġorg . slf 4 j . LoggerFactory Ċ import Ġorg . springframework . security . access . Access Denied Exception Ċ import Ġorg . springframework . security . web . access . Access Denied Handler Ċ import Ġjavax . servlet . http . HttpServletRequest Ċ import Ġjavax . servlet . http . HttpServletResponse Ċ Ċ /** Ċ Ġ* Ġcreated Ġby Ġ< a Ġhref =" mailto : 1 1 9 4 4 5 8 4 3 2 @ qq . com " Ġ> Ġl yf uci Ġ</ a > Ċ Ġ* Ġon Ġ: Ġ 2 0 1 9 / 6 / 8 Ġ 1 8 : 4 1 Ċ Ġ*/ Ċ class ĠR um but an Access Denied Handler Ġ: ĠAccess Denied Handler Ġ{ ĊĠĠĠ Ġprivate Ġval Ġlog Ġ= ĠLoggerFactory . getLogger ( java Class ) ĊĠĠĠ Ġoverride Ġfun Ġhandle ( ĊĠĠĠĠĠĠĠ Ġrequest : ĠHttpServletRequest ?, ĊĠĠĠĠĠĠĠ Ġresponse : ĠHttpServletResponse ?, ĊĠĠĠĠĠĠĠ Ġaccess Denied Exception : ĠAccess Denied Exception ? ĊĠĠĠ Ġ) Ġ{ ĊĠĠĠĠĠĠĠ Ġlog . error (" access Ġdenied ", Ġaccess Denied Exception ) ĊĠĠĠĠĠĠĠ Ġresponse !!. writer . write (" access Ġdenied ") ĊĠĠĠ Ġ} Ċ Ċ }