1.在main方法开头中加入
System.getProperties().put("jdk.proxy.ProxyGenerator.saveGeneratedFiles","true");
2. 生成的代理类在项目下的 com\sun\proxy 路径下
注意:
必须在main方法中,使用Test注解的测试方法无效
1.在main方法开头中加入
System.getProperties().put("jdk.proxy.ProxyGenerator.saveGeneratedFiles","true");
2. 生成的代理类在项目下的 com\sun\proxy 路径下
注意:
必须在main方法中,使用Test注解的测试方法无效