Gordon Dickens is an instructor, mentor & consultant. Gordon is currently architecting and teaching several official SpringSource courses and actively tweets about open source technology at http://twitter.com/gdickens. Gordon is active within the Spring Framework community focussed on: Spring training, Spring Roo, Spring Integration, Spring Batch and Eclipse Virgo OSGi projects. Gordon is a DZone MVB and is not an employee of DZone and has posted 39 posts at DZone. You can read more from them at their website. View Full User Profile

SpringSource Tool Suite FAQ

06.22.2012
| 4945 views |
  • submit to reddit

Eclipse is one of the most popular IDEs for Java & Spring application development. Spring has developed the Spring IDE plugin providing developers with Spring aware tooling for our projects.

SpringSource Tool Suite = {
   Eclipse + SpringIDE + M2Eclipse +
   GroovyEclipse + AJDT + EMF + WTP + DTP,
   more...
}

Why use STS/SpringIDE

  • Bean Configuration Editor – Content Sensitive bean editing. Defining beans in XML will give you the names of the properties when entering property values in XML. Multitab editor with tabs for Namespaces and namespace specific content (JDBC, Integration, etc).
  • Beans Graph / Dependency Graph – visualizer for Spring config files & config sets
  • Beans Cross Reference View – show bean references across multiple config files
  • Beans Quick Cross Reference – cross ref info on beans in open config file
  • Beans Quick Outline – outline of beans & properties in open config file
  • Spring Beans Searching – by name, id, class, pointcut, etc.
  • Spring Bean Validation – see: Preferences > Spring > Project Validators
  • Spring MVC Request Mappings View – discovers all MVC annotations
  • Java Editor Enhancements – Predefined shortcuts for Spring features, such as “POST” - in a controller will provide a controller method signature. Quick fixes for missing annotations, etc.
  • Visualization – Graphical editors for Beans & Bean relationships, Spring Web Flow, Spring Batch, Spring Integration & Spring Aspects/AOP. Not just for show but editable too!
  • Spring Explorer – Ever wondered… where are my bean config files? Switch to Spring Explorer view to see the beans for the project.

 

First Things

[or]

 

What else is in the Box?

  • Groovy/Grails Support
  • Spring OSGi (Dynamic Modules/Eclipse Blueprint) Support
  • Spring dm Server / Eclipse Virgo Support
  • Spring Roo Support
  • Gradle Support
  • tcServer & Insight
  • JDBC Support
  • UML Diagramming

FAQ

Q: Spring features not showing up in my project, what do I do?
A: Right click on the project, under “Spring Tools…” click “Add Spring Project Nature”

Q: Why does Spring Explorer not show any bean config (XML) files?
A: Right click on the project, select “Properties” – In the properties dialog, Spring > Beans Support – click the “Scan…” button.

Q: I imported a project but the red exclamation is over the icon?
A: If it is a Maven project, Right click on the project > Maven > Enable Dependency Management

Q: Why doesn’t Spring find my configuration files when I run my JUnit tests?
A: When using Maven, you need to run “process-resources” or “resources:resources”. Open Preferences > Maven and in the field “Goals to Run when updating project configuration” should have one of these values. Then right click on the project, choose Run As > Maven package [or] Maven Install

Q: Which version of Maven is STS running?
A: Check in Preferences > Maven > Installations – Eclipse Helios & Indigo will by default install an OLD version of Maven 3.0. It is recommended that you install a current release (3.0.3 at the time of this writing) and Add that to the installation list.

Q: How do I open the Maven pom file in XML mode instead of the GUI mode?
A: Preferences > Maven > POM Editor > check “Open XML page in the POM editor by default”

Q: How do I set AOP visualization to recognize my Spring Aspects?
A: Preferences > Visualiser > Check “Spring AOP Provider” in the “Available Providers” box.

Q: I do not write Aspects, why should I care about Aspect Visualization?
A: Even if you do not write your own aspects, Spring implements them via some annotations such as @Transactional

Q: What does the Spring Tools > Enable Spring Aspects tooling do?
A: Enables advanced JDT features – see: wiki.eclipse.org/JDT_weaving_features

Q: What do the letters “S”, “M”, “Aj”, etc mean over my project, directory and files in Eclipse?
A: “S” – Spring, “M” – Maven. “AJ” – AspectJ, “J” – Java

Q: What is the AOP Event Trace View?
A: This view shows what Spring is doing when build it’s internal AOP bean model.

Published at DZone with permission of Gordon Dickens, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)