摘要:package example; public class TestAB { public static void main(String[] args) { new TestAB().test(); } public void test() { Object obj = new Object(); new Threa...
阅读全文
摘要:mvn clean spring-boot:run
阅读全文
摘要:public void test() { List tasks = new ArrayList(); int i = 0; do { tasks.add("" + i); } while (i++ { executor.submit(() -> { ...
阅读全文
摘要:releases-repo Internal Releases http://${nexus.proxy.location}/nexus/content/repositories/releases/ snapshot-repo ...
阅读全文
摘要:git config --global credential.helper store git config --global user.email "alice@aol.com" 操作的就是上面的email git config --global push.default matching 操作的就是上面的push段中的default字段 git config --global creden...
阅读全文
摘要:import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.Mockito; import o...
阅读全文
摘要:package com.example.demo; import static org.hamcrest.Matchers.containsString; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; import static org.springframewor...
阅读全文
摘要:package com.wolaidai.loanprocedure; public class ABC { public static void main(String[] args) throws Exception { Object obj = new Object(); new Thread(new Printer(obj)).start()...
阅读全文
摘要:package test; import java.util.LinkedList; import java.util.List; /** * * @author jis * */ public class TestB { public static void main(String[] args) { BlockList list = new Block...
阅读全文
摘要:https://my.oschina.net/andylucc/blog/618179 摘要: Infoq有篇文章提到通过Netty4+Thrift压缩二进制编码技术有人实现了10W TPS(1K的复杂POJO对象)跨节点远程服务调用,对于RPC应用来说高性能的三个主题永远是IO模型、数据协议、线程
阅读全文
摘要:alias ll="ls -al --color=auto"
阅读全文
摘要:import java.util.Iterator; import java.util.List; import javax.validation.ConstraintValidator; import javax.validation.ConstraintValidatorContext; import org.apache.commons.lang3.StringUtils; publ...
阅读全文