Advertisement
Guest User

Untitled

a guest
Oct 12th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement