Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to set eclipse in IDE tool

Shulou Source: shulou.com Published: 2022-06-01 11:40:01 09月26日 Update

This article mainly introduces the IDE tool how to set eclipse, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

1. Add window: for example, add Server window: Window-- > Show View find Servers, click on it; 2. Modify the default format of class comments Window-- > Preferences-> search templ, and find Code Template-- > right Comments setting Types

3. Eclipse debug gets the attribute value of a complex object

In debug mode: window-- > showView-- > expression, as shown below, take Java DispatcherServlet as an example:

4. Eclipse debug inspect

In debug mode, you want to view the return value of an object / method: select the object / method you want to view, right-- > Inspect;, or shortcut key: Crtl+Shift+I

5. Eclipse plugin

5.1. OpenExplorer plug-in: quickly open the local file OpenExplorer downloads in eclipse

6. Eclipse configure JDK

Window-- > Preferences-- > Java-- > select or add your own JDK to the right of Installed JREs

7. The normal unit test of Spring MVC Junit in eclipse suddenly failed. More Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.ford.vdm.service.DerivativeService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@ org.springframework.beans.factory.annotation.Autowired (required=true)} at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException (DefaultListableBeanFactory.java:1373) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency (DefaultListableBeanFactory.java:1119) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency (DefaultListableBeanFactory.java:1014) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject (AutowiredAnnotationBeanPostProcessor.java:545)... 28 more

Reason: solution:

Right-click on the project-- > Build Path-- > Configure Buid Path-- > pop-up box'in Properties for projectName'-- > Select Java Build Path-- > right Source window-- > Included:**/*.java' (src/test/java and src/test/resources) in the test directory of the selected project-- > Remove

Thank you for reading this article carefully. I hope the article "how to set up eclipse in IDE tools" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Article right object method tool pattern project complex two value interest unit reason at the same time properties shortcuts plug-ins files more friends Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Shulou Technology macOS Docker MariaDB