From 75ae7adfaef6260c0f7b8e1b12ac7bb0dd3353ed Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Thu, 24 Dec 2020 11:21:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=9D=E5=AD=98=E5=9F=BA=E6=9C=AC?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=97=B6=E5=8E=BB=E6=8E=89=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E6=9C=80=E5=90=8E=E7=9A=84=20/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/service/SystemParameterService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/main/java/io/metersphere/service/SystemParameterService.java b/backend/src/main/java/io/metersphere/service/SystemParameterService.java index e58e268726..1660186db3 100644 --- a/backend/src/main/java/io/metersphere/service/SystemParameterService.java +++ b/backend/src/main/java/io/metersphere/service/SystemParameterService.java @@ -212,6 +212,8 @@ public class SystemParameterService { public void saveBaseInfo(List parameters) { SystemParameterExample example = new SystemParameterExample(); parameters.forEach(param -> { + // 去掉路径最后的 / + param.setParamValue(StringUtils.removeEnd(param.getParamValue(), "/")); example.createCriteria().andParamKeyEqualTo(param.getParamKey()); if (systemParameterMapper.countByExample(example) > 0) { systemParameterMapper.updateByPrimaryKey(param);