byte[] myService$proxies = ProxyGenerator.generateProxyClass("MyService$proxy", new Class[]{MyService.class});
String filepath="./MyService$proxy.class";
File file = new File(filepath);
FileOutputStream fileOutputStream = new FileOutputStream(file);
fileOutputStream.write(myService$proxies);
原文:https://www.cnblogs.com/project-zqc/p/12246267.html