Skip to content

Commit

Permalink
<fix>(project): update log4j2 version to 2.17.1. (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyonRay authored Jan 11, 2022
1 parent eac9845 commit 4ac0c95
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 代码如下:(**以项目最新文件为准**

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/example/demo/config/SystemConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
@Configuration
@ConfigurationProperties(prefix = "system")
public class SystemConfig {
private String groupName = "group0";
private String groupName = "group";

private String hexPrivateKey;
}
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4ac0c95

Please sign in to comment.