diff options
| author | wangkuan <[email protected]> | 2024-04-19 11:17:48 +0800 |
|---|---|---|
| committer | wangkuan <[email protected]> | 2024-04-19 11:17:48 +0800 |
| commit | ea09d5dfb14dd17a8edf1b1ec8d491d3ae5ec171 (patch) | |
| tree | a1e8d2262bd1b55c35ddaefe6870662ccc153418 | |
| parent | fae16e5804fac5d9e9999e85bbbf3b930c3b753d (diff) | |
修复country拼接出现多余的空格问题,修改jdk versionfeature/rebuild-code
| -rw-r--r-- | pom.xml | 4 | ||||
| -rw-r--r-- | src/main/java/com/zdjizhi/function/DosDetectionFunction.java | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -56,8 +56,8 @@ <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> <configuration> - <source>1.8</source> - <target>1.8</target> + <source>11</source> + <target>11</target> <!-- The semantics of this option are reversed, see MCOMPILER-209. --> <useIncrementalCompilation>false</useIncrementalCompilation> <compilerArgs> diff --git a/src/main/java/com/zdjizhi/function/DosDetectionFunction.java b/src/main/java/com/zdjizhi/function/DosDetectionFunction.java index 6662873..4914335 100644 --- a/src/main/java/com/zdjizhi/function/DosDetectionFunction.java +++ b/src/main/java/com/zdjizhi/function/DosDetectionFunction.java @@ -312,7 +312,7 @@ public class DosDetectionFunction extends ProcessFunction<DosSketchLog, DosEvent countrySet.add(country); } } - countryList = StringUtils.join(countrySet, ", "); + countryList = StringUtils.join(countrySet, ","); return countryList; } catch (Exception e) { logger.error("{} source IP lists 获取国家失败", sourceIpList, e); |
