在使用cglib的程序中设置上属性:
html
System.setProperty(DebuggingClassWriter.DEBUG_LOCATION_PROPERTY, "D:\\wps\\trt");java
而后运行程序,能够发现加强的字节码生成到了文件中:工具
D:\wps\trt\com\jcloud\cglib>dirui
HelloWorld$$EnhancerByCGLIB$$80b51d2b$$FastClassByCGLIB$$4518baf1.class
spa
2014/02/07 16:15 5,257 HelloWorld$$EnhancerByCGLIB$$80b51d2b.class代理
2014/02/07 16:15 2,653 HelloWorld$$FastClassByCGLIB$$9a0a5c83.classhtm
而后用jd-gui工具反编译并查看,(很是推荐这个工具)blog
http://jd.benow.ca/#jd-gui-download get
参考: http://gaolixu.iteye.com/blog/1096672 it