How to use the IDE to view the third-party jar package source code and comments, IntelliJ idea with the anti-compiler, Eclipse installed a plug-in can, can not see the comments on the trouble, can not find the API document it, now finally mastered, the following solutions, for everyone reference, to enhance the development of learning efficiency!
Eclipse
1. Install the anti-compiler (in Eclipse Marketplace search Decompiler install) 2. Download Source Package 2.1 Go to official website Download 2.2 Right-click Maven Project->maven->download Sources (maven will automatically download the corresponding version of the jar package source code) 2.3 Go to maven warehouse download (for example: Maven MySQL Baidu a bit, Must appear the warehouse address, find a version to download the 3.4 maven command download (for MAVEN project), open the command line input in the Pom.xml folder: Mvn dependency:sources4. Associate to the jar package, right-click the project->build path->configure build path...-> Select Java Build Path Libraries tab, locate the appropriate jar package->source Attachment->edit->external location->external File ... Select the corresponding source package can be 5. Move the mouse over the method to stay for a while, you will appear the way the comment prompt.
IntelliJ idea
1. Download the source package (IBID.) 2. Add to Library, click on the Toolbar Module settings icon (Project Structure), Libraries +----java-> Select the jar source package or the source package folder (if Maven project, As long as the source package has been downloaded in the local MAVEN repository, no need for the above configuration) 3. View the method comments, click into the source code, if you want to and eclipse as the mouse pause can appear comment prompt, open method for:preferences->editor-> General->other->show Quick documentation on mouse move hook
Transferred from: http://www.infocool.net/kb/Java/201705/355387.html, ^_^
"Eclipse+intellij anti-compilation" Eclipse/intellij idea Anti-compilation view source code and comments