From c748d1659a9f32856117dd929e67fe03940fb2b0 Mon Sep 17 00:00:00 2001
From: zainali5120 <512061637@qq.com>
Date: Thu, 22 Oct 2020 10:54:16 +0800
Subject: [PATCH] 初始化bug修复

---
 src/test/java/com/xcong/excoin/TradeTest.java |   35 +++--------------------------------
 1 files changed, 3 insertions(+), 32 deletions(-)

diff --git a/src/test/java/com/xcong/excoin/TradeTest.java b/src/test/java/com/xcong/excoin/TradeTest.java
index c941e4b..9b62d02 100644
--- a/src/test/java/com/xcong/excoin/TradeTest.java
+++ b/src/test/java/com/xcong/excoin/TradeTest.java
@@ -1,5 +1,6 @@
 package com.xcong.excoin;
 
+import cn.hutool.crypto.SecureUtil;
 import com.xcong.excoin.modules.coin.dao.OrderCoinsDao;
 import com.xcong.excoin.modules.coin.entity.OrderCoinsEntity;
 import com.xcong.excoin.modules.coin.service.OrderCoinService;
@@ -35,37 +36,7 @@
     }
 
     public static void main(String[] args) throws InterruptedException {
-        // 测试两个地方
-        List<String> list  = new ArrayList<>();
-        list.add("1");
-        list.add("2");
-        list.add("3");
-        list.add("4");
-        // 开一个线程
-        Thread thread = new Thread(new Runnable() {
-            @SneakyThrows
-            @Override
-            public void run() {
-                Thread.sleep(1000);
-                synchronized (list){
-                    Iterator<String> iterator = list.iterator();
-                    while (iterator.hasNext()){
-                        System.out.println("线程里"+iterator.next());
-                        iterator.remove();
-                    }
-                }
-
-            }
-        });
-        thread.start();
-        synchronized (list){
-            Iterator<String> iterator = list.iterator();
-            while (iterator.hasNext()){
-                Thread.sleep(1000);
-                System.out.println(iterator.next());
-            }
-        }
-
-        //
+        String s = SecureUtil.md5("123456");
+        System.out.println(s);
     }
 }

--
Gitblit v1.9.1