26784

Finding spring bean references?

Question:

IDEs like eclipse have that fance feature to follow a method-call by Ctrl-click or to find callers using Ctrl+Shift+G.

In *.spring.xml one can Ctrl-click on a referenced class. That is fine.

Is there anyway to find out something about references between beans?

E.g.:

Where is this bean referenced in other .spring.xmls?

Where is this bean reference defined?

Answer1:

The closest to it is <strong>Spring Explorer View found in Spring Tool Suite</strong>. There you can explore your bean configurations and even see the Dependency graph (graphical representation of your bean configuration)

STS is SpringSource's build of Eclipse which includes Spring tools and a lot more. It can be downloaded for free from <a href="http://www.springsource.com/downloads/sts" rel="nofollow">http://www.springsource.com/downloads/sts</a>

Answer2:

IntelliJ IDEA also has <a href="http://www.jetbrains.com/idea/webhelp/spring-dependencies-diagram.html" rel="nofollow">Spring bean dependency graph viewer</a>.

Recommend

  • Android TabLayout tabPaddingTop and tabPaddingBottom not being removed
  • Create interactive firewall app in Android
  • Cut and Table function in R
  • Can spring annotation access method parameters?
  • Error trying to download using filnename format
  • My app keep deny the access to contacts iOS - Swift
  • Tensorflow Object Detection API `indices[3] = 3 is not in [0, 3)` error
  • Fetch first location on android and stop updates
  • How to get mouseover event from android emulator
  • Trouble using Runtime.getRuntime().exec
  • Getting public URL to file in Google Drive using .NET API
  • load ActiveX object in Applet
  • NSTimers causing leaks
  • Best way to send continuous data in Java using Netty
  • Html.BeginForm inside of Html.BeginForm MVC3
  • Read single data in csv data downloaded from url
  • swift playground error: module 'Python' has no member named 'import'
  • pyinstaller add folder with images in exe file
  • How to use InjectTouchInput for specific window?
  • How to send the client id and secret id of OAuth2 using Angular 2?
  • Android: Mediaplayer stop / start playing raw resource
  • Parse and remove special characters in java regex
  • Get an image from the video
  • can I build CMakeLists.txt from a set of smaller files (to improve the readability and maintainabili
  • How to print every 4th column up to nth column and from (n+1)th column to last using awk?
  • Admob in ListView not clickable
  • Unable to start a WebView from an AsyncTask
  • time column in sqlite using gorm
  • Floating parent div grows to hypothetical width of floating child div
  • How to call jQuery function in HTML returned by AJAX
  • How do I add a mouse over tooltip to an Image using .DrawImage()
  • reshape/remould data frame to create normalized bar chart and pie chart
  • read part of h5 dataset python
  • Send array to next viewcontroller iOs xcode [duplicate]
  • Codeigniniter insert data through models and controller
  • PHP Permalinks.. how to change?
  • What does the “id” field in an Android “Google Play Music” broadcast intent correspond to?
  • How to check if object is null in Java?