Editing spring xml source with eclipse / sts - lack of “labels appearing” and “switching to bean to another file”?

I work with Eclipse / STS and edit the XML spring bean with the "Source" editor, since I don't like GUI editors. I miss these features:

  • mark tags - select all occurrences of the word I'm standing on (just like in the java editor)
  • Go to bean (using F3 or ctrl-click) if defined in another spring XML file

Am I missing a plugin? Should I work with GUI editors?

Thanks, Ido

+4
source share
1 answer

Switching to a bean with F3 should work if the project is configured correctly. I.e:

  • A project containing XML context definitions needs the "nature of a spring project"
  • all XML configuration files must be declared for STS: in the project properties use the "Spring" tab and from there "beans support" and add all the configuration files. (This leads to entries in your /.settings/.springBeans that can be shared through SCM with other team members).
  • all pre-projects offering Java classes for these beans should be declared as project dependencies if you are working with a project with multiple modules.

Also, searching for "spring beans links" is very useful: place the cursor on the bean name and press CTRL-SHIFT-g to get a schema of all the links to that bean name (including the Java class and the definition of bean in XML)

+1
source

Source: https://habr.com/ru/post/1346086/


All Articles