Eclipse View Spring Source

Source: Internet
Author: User

Off Topic

For spring frames, they are usually donuts, and stay in the level of use. Have always wanted to study deeply, just recently saw "spring Source depth analysis", so want to study in depth with the book.

If you use Maven

If you are using MAVEN, and just debugging, and do not intend to modify it, you can download the source code directly using Eclipse!!

For example, I want to see the Attribute.java file under Spring-core.

Open directly, you will be prompted not to find the source file. You can then right-click in the Maven dependency package,

Compiling spring Source code

If you want to see and modify spring's source code, you should re-import the spring project and compile it!

If you download the spring source and import it into Eclipse, online search has a lot of results that are similar. I follow the above method to execute the root directory of the Import-into-eclipse.bat file, found the first step error:

 for Object heaperror:could not create the Java Virtual machine.

Probably to set the parameters of the JVM, continue Baidu ...

Set default_jvm_opts=-xms512m-xmx512m-xx:maxpermsize=256m

or report the same mistake!

Finally, find a lot of information, and finally found a relatively different solution: http://blog.csdn.net/xiejx618/article/details/16930827 set the source file under the root directory Gradlew.bat

Set Java_home=d:\softs\jdkset Gradle_opts=-dgradle.user.home=d:\softs\gradle-2.2.1set DEFAULT_JVM_OPTS=

Then, the cmd switch to the source root directory, the execution of Import-into-eclipse.bat, found down executed .....

Placeholder
The problem is again, compile error, find a lot of dependent files and so on. See online said may be due to the network environment, more than several times can be executed. So, re-execute Import-into-eclipse.bat finally in the download ... However, the speed is not generally slow, slowly!!!

Eclipse View Spring Source

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.