From 82b7c779f1018d384aa3f0a6d8379f49e984286e Mon Sep 17 00:00:00 2001 From: curry772 Date: Wed, 26 Aug 2026 13:48:05 +0900 Subject: [PATCH] =?UTF-8?q?feat=20:=20template=20=EA=B8=B0=EB=B0=98=20Adap?= =?UTF-8?q?terErrorMessageHandler=20=EB=82=B4=EB=B6=80=EC=98=A4=EB=A5=98?= =?UTF-8?q?=EC=BD=94=EB=93=9C=EB=B3=84=20=ED=85=9C=ED=94=8C=EB=A6=BF=20?= =?UTF-8?q?=EC=A7=80=EC=A0=95=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - {in 어댑터그룹명}.sys.{rspErrCd}.template 키 사용 --- .../handler/TemplateAdapterErrorMsgHandler.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/eactive/eai/adapter/handler/TemplateAdapterErrorMsgHandler.java b/src/main/java/com/eactive/eai/adapter/handler/TemplateAdapterErrorMsgHandler.java index 589221f..a12e5da 100644 --- a/src/main/java/com/eactive/eai/adapter/handler/TemplateAdapterErrorMsgHandler.java +++ b/src/main/java/com/eactive/eai/adapter/handler/TemplateAdapterErrorMsgHandler.java @@ -411,9 +411,16 @@ public class TemplateAdapterErrorMsgHandler implements AdapterErrorMessageHandle @Override public Object generateNonStandardInternalErrorResponseMessage(String inboudnAdapterGroupName, String inboudnAdapterName, Properties callProp, Object inboundRequestData, EAIMessage resEaiMsg) throws Exception { - String templateKey = inboudnAdapterGroupName + ".sys.template"; - String template = PropManager.getInstance().getProperty(PROP_GROUP, templateKey); - + String template = ""; + String templateKey = ""; + if (resEaiMsg != null && StringUtils.isNotEmpty(resEaiMsg.getRspErrCd())) { + templateKey = inboudnAdapterGroupName + ".sys." + resEaiMsg.getRspErrCd() + ".template"; + template = PropManager.getInstance().getProperty(PROP_GROUP, templateKey); + } + if (StringUtils.isBlank(template)) { + templateKey = inboudnAdapterGroupName + ".sys.template"; + template = PropManager.getInstance().getProperty(PROP_GROUP, templateKey); + } if (StringUtils.isBlank(template)) template = PropManager.getInstance().getProperty(PROP_GROUP, "default.sys.template");