| | |
| | | import cc.mrbird.febs.dapp.utils.BoxUtil; |
| | | import cn.hutool.core.util.RandomUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.junit.jupiter.api.Test; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | * @author wzy |
| | | * @date 2022-06-09 |
| | | **/ |
| | | @Slf4j |
| | | @SpringBootTest |
| | | public class MemberTest { |
| | | |
| | |
| | | Runnable runnable = new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | BoxUtil.openBox(); |
| | | BoxUtil.Box box = BoxUtil.openBox(); |
| | | log.info("====={}==={}=====", box.getIndex(), box.getCount()); |
| | | } |
| | | }; |
| | | |
| | | for (int i = 0; i < 12; i++) { |
| | | for (int i = 0; i < 9; i++) { |
| | | Thread thread = new Thread(runnable); |
| | | thread.start(); |
| | | // BoxUtil.Box box = BoxUtil.openBox(); |
| | | // log.info("====={}==={}=====", box.getIndex(), box.getCount()); |
| | | } |
| | | |
| | | } |
| | | |
| | | } |