怎么在myeclipse里查看jar包的源代码

如题所述

    选中某一个jar文件,如struts2-core-2.1.8.1.jar,

    然后右键-->preferences-->Java Source Attachment-->Externam Folder,

    然后找到你的struts 2的包的位置,D:/MyEclipse插件/struts-2.1.8.1/src/core/src/main/java,安装这个路径,确定即可在MyEclipse查看源文件了。

温馨提示:答案为网友推荐,仅供参考