在使用web_url的时候,一定注意Resource的使用,一般最好使用Resource=0,如果使用Resource=1,那么一定要修改配置. Resource Attribute If Resource is set to 0, the URL is always downloaded during replay. If Resource is set to 1, the URL is downloaded only if the Download non–HTML resources op
public class VolatileTest2 implements Runnable{ volatile int resource = 0; public static void main(String[] args) { VolatileTest2 vt = new VolatileTest2(); new Thread(vt).start(); new Thread(vt).start(); while(Thread.activeCount() > 1){ Thread.yield(