SpringSource Tool Suite FAQ

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.



About Gordon

Technology enthusiast primarily focused on Java and Open Source projects. Spring Certified Professional and Trainer. http://twitter.com/gdickens http://linkedin.com/in/gordondickens http://github.com/gordonad
This entry was posted in Grails, Java, OSGi, Roo, Spring, Spring Batch, Spring Framework, Spring Integration, Spring Roo and tagged , , , , , , , , , , , , , , , , , , , , . Bookmark the permalink.

One Response to SpringSource Tool Suite FAQ

  1. shanti says:

    Hi

    I have installed STS in Eclipse as plugin.How can I add the spring template project as maven module project in maven multi module structure.

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>