From dfd3a18175d16acdb456bb1d2387445163f027ec Mon Sep 17 00:00:00 2001 From: zhangqinbin <181961702@qq.com> Date: Wed, 18 May 2022 10:03:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E5=A7=94=E6=89=98=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E3=80=81=E6=A0=87=E6=AE=B5=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E3=80=81=E6=A0=87=E6=AE=B5=E7=BC=96=E5=8F=B7=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=96=B0=E7=9A=84=E9=9D=9E=E6=B3=95=E5=AD=97=E7=AC=A6=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ebtp/project/checkSpecialCharacters/CheckUtil.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/project/checkSpecialCharacters/CheckUtil.java b/src/main/java/com/chinaunicom/mall/ebtp/project/checkSpecialCharacters/CheckUtil.java index aa20f42..c368a71 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/project/checkSpecialCharacters/CheckUtil.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/project/checkSpecialCharacters/CheckUtil.java @@ -13,6 +13,7 @@ import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; import java.lang.reflect.Field; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -25,7 +26,7 @@ public class CheckUtil { private static int checkLengh; //zhqbin 20220428 update 增加对委托项目名称\t\r\n字符校验 public static void checkEntrust(PurpImplementSendVO implementSendVO) { - log.error("---------对"+checkValue+"..等---------------校验非法字符----------------------------"); + log.error("---------对"+Arrays.toString(checkValue)+"..等字符---------------校验非法字符----------------------------"); if(implementSendVO.getPurpImplementName()!=null){ log.error("------------------------校验非法字符----------------------------项目名称:"+implementSendVO.getPurpImplementName()); check(implementSendVO.getPurpImplementName()); @@ -107,7 +108,9 @@ public class CheckUtil { } public static void main(String args[]){ - check("whw综合评分"); + String checkValue[] = {"\t","\n","\r","<",">","|","\\","?",":","*","\""}; + System.out.println(checkValue); + System.out.println(Arrays.toString(checkValue)); } }