回滚到某个tag: git reset --hard 70438034dc git push -f 合并 解决冲突 提交: Step 1. Fetch and check out the branch for this merge request git fetch origin git check Read More
累加器例子:add10K() 这个方法不是线程安全的,问题就出在变量 count 的可见性和 count+=1 的原子性上 1.可见性问题可以用 volatile 来解决, 2.原子性问题我一直都是采用的互斥锁。 public class Test { long count = 0; void ad Read More
步骤如下:1.进入jmeter\apache-jmeter-5.1.1\bin,打开jmeter.properties2.jmeter.properties中搜索“sampleresult.default.encoding” ,设置sampleresult.default.encoding=utf- Read More
<dependency> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId> <version>3.1</version> </dependency> public static Stri Read More