Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void saveGeneratedCGlibProxyFiles() throws Exception {
- Field field = System.class.getDeclaredField("props");
- field.setAccessible(true);
- Properties props = (Properties) field.get(null);
- System.setProperty(DebuggingClassWriter.DEBUG_LOCATION_PROPERTY, "D:\\tmp\\cglib");//dir为保存文件路径
- props.put("net.sf.cglib.core.DebuggingClassWriter.traceEnabled", "true");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement