1、可以使用dos界面进入需要编译的class文件所在目录,使用javap的命令进行反编译,比如bean.class, 命令javap bean.class 2、第二种方式使用jd-gui.exe软件,进行反编译,这个比较简单快捷