failed to create the part's controls

failed to create the part's controls

I didn’t understand it at the time. There are basically three arguments for all kinds of online Baidu.

  1. Sinicization problem (I did Sinicization)

  2. Reopen the workspace

  3. JDK source code path is wrong

Later, I followed the method on the website and finally solved it.

The reason is that eclipse's default

It is jre, the source code package is wrong, so I added the path of JDK and selected it. I thought it would be enough to get here. (PS: I didn’t understand the difference between jre and jdk at the time, but I saw one on the garden. Only the post of the blogger understands ->>>> through train )

But the opening is still wrong. Maybe it is a Chinese problem. I added a sentence [-Duser.language=en] to the eclipse.ini configuration file in the eclipse directory.

Reopen, successfully jump to the source code! ! ! ! ! !

It's a pity that Sinicization cannot be used - -. , but the Chinese package is not completely Chinese, and some are not allowed, so it is recommended to use the original English version.


2.Eclipse associated springmvc source code

Associate the source code of spring in eclipse

    In java web development, the general project is the architecture of ssh or ssm, one of which is spring, and sometimes you need to look at its source code. After clicking it, you find that you can't read it. At this time, you can follow the steps below to see the source code of spring. .

    First, we click on a class: here org.springframework.web.context.ContextLoaderListener in the web.xml configuration

The following figure appears:


    I can't see it. At this time, we click "Change Attached Source...", and the following interface appears:


    At this time, I need to associate resources. This resource is the source code of spring4. Let's download it here: Spring4 source code . After downloading, we can put it on the desktop or other locations, but remember this location, because our next step about to use it!

    Click "External File....", and then find the compressed package you just downloaded, as shown below:



    Double-click the compressed package, you can go to the following picture:



    Click OK, and you're done, as shown below:



    That's it! Others, such as related hibernate, struts, mysql, etc. are all the same, the key is to download the source code first.

    By the way, if you still can't see it when you click and look at the source code later, just follow the above steps and do it again!




Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325477128&siteId=291194637