From 4ac0c950a59d757e351657d3b4b406f25a93c63a Mon Sep 17 00:00:00 2001 From: Kyon <32325790+kyonRay@users.noreply.github.com> Date: Tue, 11 Jan 2022 10:40:19 +0800 Subject: [PATCH] (project): update log4j2 version to 2.17.1. (#97) --- README.md | 4 ++-- build.gradle | 2 +- src/main/java/org/example/demo/config/SystemConfig.java | 2 +- src/main/resources/application.properties | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e253ea8..4745445 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ network.peers[0]=127.0.0.1:20200 #network.peers[1]=127.0.0.1:20201 ### System configuration -system.groupId=group0 +system.groupId=group system.hexPrivateKey= ### Springboot configuration @@ -46,7 +46,7 @@ server.port=8080 - System configuration配置部分,需要配置: - system.hexPrivateKey是16进制的私钥明文,可运行Demos.java中的`keyGeneration`生成(文件路径:src/test/java/org/example/demo/Demos.java)。该配置允许为空,此时系统会随机生成一个私钥。 - - system.groupId设为目标群组,默认为group0 + - system.groupId设为目标群组,默认为group Demos.java 代码如下:(**以项目最新文件为准**) diff --git a/build.gradle b/build.gradle index 47787a8..aae1e85 100644 --- a/build.gradle +++ b/build.gradle @@ -35,7 +35,7 @@ configurations.all { resolutionStrategy.cacheChangingModulesFor 0, 'seconds' } -def log4j_version="2.15.0" +def log4j_version="2.17.1" List logger = [ "org.apache.logging.log4j:log4j-api:$log4j_version", // "org.apache.logging.log4j:log4j-core:$log4j_version", diff --git a/src/main/java/org/example/demo/config/SystemConfig.java b/src/main/java/org/example/demo/config/SystemConfig.java index 6bf58db..64016be 100644 --- a/src/main/java/org/example/demo/config/SystemConfig.java +++ b/src/main/java/org/example/demo/config/SystemConfig.java @@ -8,7 +8,7 @@ @Configuration @ConfigurationProperties(prefix = "system") public class SystemConfig { - private String groupName = "group0"; + private String groupName = "group"; private String hexPrivateKey; } diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index bdec3fe..deb1abe 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -4,7 +4,7 @@ cryptoMaterial.useSMCrypto=false network.peers[0]=127.0.0.1:20200 ### System configuration -system.groupName=group0 +system.groupName=group ### Springboot configuration server.port=8080