区块链(5):java区块链项目基本算法的代码实现

发布时间 2023-10-27 15:34:32作者: 天使angl

区块链(5):java区块链项目基本算法的代码实现

1 新建maven项目

2 引入依赖

  1.  
    <dependencies>
  2.  
    <dependency>
  3.  
    <groupId>junit</groupId>
  4.  
    <artifactId>junit</artifactId>
  5.  
    <version>4.12</version>
  6.  
    <scope>test</scope>
  7.  
    </dependency>
  8.  
    <dependency>
  9.  
    <groupId>org.java-websocket</groupId>
  10.  
    <artifactId>Java-WebSocket</artifactId>
  11.  
    <version>1.3.4</version>
  12.  
    </dependency>
  13.  
    <dependency>
  14.  
    <groupId>com.alibaba</groupId>
  15.  
    <artifactId>fastjson</artifactId>
  16.  
    <version>1.2.44</version>
  17.  
    </dependency>
  18.  
    </dependencies>