daily pastebin goal
55%
SHARE
TWEET

Untitled

a guest Oct 12th, 2017 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static void saveGeneratedCGlibProxyFiles() throws Exception {
  2.     Field field = System.class.getDeclaredField("props");
  3.     field.setAccessible(true);
  4.      Properties props = (Properties) field.get(null);
  5.     System.setProperty(DebuggingClassWriter.DEBUG_LOCATION_PROPERTY, "D:\\tmp\\cglib");//dir为保存文件路径
  6.     props.put("net.sf.cglib.core.DebuggingClassWriter.traceEnabled", "true");
  7. }
RAW Paste Data
Top