From fc16666200a3dba62d99c093cd63459ef325a5bb Mon Sep 17 00:00:00 2001 From: da-daken <2844775971@qq.com> Date: Thu, 4 May 2023 20:02:42 +0800 Subject: [PATCH] =?UTF-8?q?opt=EF=BC=9A=E5=AD=97=E7=AC=A6=E4=B8=B2?= =?UTF-8?q?=E5=88=A4=E7=A9=BA=E7=94=A8=E5=B7=A5=E5=85=B7=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/java3y/austin/support/utils/ContentHolderUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/austin-support/src/main/java/com/java3y/austin/support/utils/ContentHolderUtil.java b/austin-support/src/main/java/com/java3y/austin/support/utils/ContentHolderUtil.java index ae3f868..3d0b7b5 100644 --- a/austin-support/src/main/java/com/java3y/austin/support/utils/ContentHolderUtil.java +++ b/austin-support/src/main/java/com/java3y/austin/support/utils/ContentHolderUtil.java @@ -1,5 +1,6 @@ package com.java3y.austin.support.utils; +import org.apache.commons.lang3.StringUtils; import org.springframework.context.expression.MapAccessor; import org.springframework.expression.spel.support.StandardEvaluationContext; import org.springframework.util.PropertyPlaceholderHelper; @@ -54,7 +55,7 @@ public class ContentHolderUtil { @Override public String resolvePlaceholder(String placeholderName) { String value = paramMap.get(placeholderName); - if (null == value) { + if (StringUtils.isEmpty(value)) { String errorStr = MessageFormat.format("template:{0} require param:{1},but not exist! paramMap:{2}", template, placeholderName, paramMap.toString()); throw new IllegalArgumentException(errorStr);