@RequestMapping(value = "/bsar/ar/getRshtLabel", method = RequestMethod.POST) public Model getRshtLabel(Model model, @RequestBody ReceiptCmd receiptCmd) { String temp = null; logger.debug("확인용" + receiptCmd.getLanguage()); try { model.addAttribute( "rshtLabel", new ObjectMapper() .defaultPrettyPrintingWriter() .writeValueAsString(receiptService.getRshtLabel(receiptCmd))); } catch (AcubeCommonException me) { logger.error("[getRshtLabel] " + me.toString(), me); model.addAttribute("RESULT", "FAIL"); model.addAttribute("MESSAGE", me.toString()); } catch (Exception e) { logger.error("[getRshtLabel] " + e.toString(), e); model.addAttribute("RESULT", "FAIL"); model.addAttribute("MESSAGE", "err.500"); } finally { if (logger.isDebugEnabled()) { logger.debug("[getRshtLabel] END"); } } return model; }