Even as Visual Studio and .NET Developers, we must sometimes build tools or apps based on Java.  I came across this recently as my team was investigating using a Spring Cloud Config server for server configuration settings.  It uses GIT as it’s source of configurations, making maintenance of server settings easier than using a DB, and gives an audit trail of any settings that are changed.

In order to get this server running on my localhost, I wanted to build the project.  The easiest way to do that is to install the Spring Tool Suite into Eclipse to create a new project that is already setup.

If you prefer to watch this process on video, check out my youtube channel.

In order to start this, first install the Eclipse IDE if you haven’t already.  Note there is no need to download the Zip file for STS.  Eclipse has a Marketplace that is similar to NuGet in offering packages for download.

Eclipse Market Place Help Menu

Eclipse Market Place Help Menu

Once you have Eclipse running, use the Marketplace to add the Spring Tools Suite by finding “STS”

Eclipse Marketplace STS Search

Eclipse Marketplace STS Search

Clicking the Install button will give you the following options.  Just click Confirm, Accept the License, then Finish.

Eclipse STS Install Options

Eclipse STS Install Options

You will receive the following security warning.  Click “Install Anyway”

Eclipse STS Install Security Warning

Eclipse STS Install Security Warning

After a restart, you’re almost there, but not quite.  If you right click in the Package Explorer, you will not see the Spring project types.

Default Eclipse Project Types

Default Eclipse Project Types

To get access to the Spring project types, you must set the proper Eclipse Perspective

Eclipse Perspective Menu

Eclipse Perspective Menu

 

Eclipse Spring Perspective

Eclipse Spring Perspective

Once you set that perspective, you can create a new Spring project.

Eclipse Spring Project Menu

Eclipse Spring Project Menu

That’s it!  No downloading Zip files and trying to figure out where they go to get them installed in the Eclipse environment.