Spring Tools 4 GA Released
Big news from the Spring camp today — the latest version of Spring Tools has been released and it's been re-built from the ground up! Let's take a look!
Join the DZone community and get the full member experience.Join For Free
After a decade of rolling out updates and improvements to the famous Spring Tool Suite and the Spring IDE components for Eclipse, a new era of Spring tooling starts today and we welcome you to the all-new Spring Tools 4. After an intensive period of public betas, we are happy to announce the first official release today.
Spring Tools 4 is a completely new set of tools for working with Spring projects in your favorite IDEs and editors. They have been re-built from scratch with the goal in mind to provide the best support for implementing enterprise-grade applications based on Spring and Spring Boot across development environments and lightweight editors. They provide a unique editor-centric experience for working with Spring projects, ranging from smart and Spring-aware content-assist to a unique new way of connecting your source code with and enriching it with detailed information and insights from your running Spring Boot applications. This puts your source code editor side-by-side with your running boot applications.
The all-new Spring Tools 4 analyze your projects on the fly, understand the Spring constructs inside, and provide easy and quick navigation to all your Spring elements. Finding a specific request mapping, an exact bean definition, or a newly created function was never as easy as with the new Spring Tools 4.
Information From Live-Running Apps
The all-new Spring Tools 4 introduces a new concept of overlaying your source code with detailed information from live-running Spring Boot apps. As soon as you run your boot app on your machine, additional information from this app will show up directly in your source code editor. The most powerful part here are the detailed wiring reports for your beans. You can see exactly which bean (from which source) got injected into your @Autowired-annotated dependency (for example) and where your bean got injected in your application. This provides a unique insight into the running application directly in your source code. You don't have to collect that data yourself and find the right lines of code manually. The tooling does that for you automatically. And going one step further, you can get that information from remote Spring Boot apps too. This allows you to see bean wirings of cloud-deployed Spring applications directly in your source code editor.
We know that Spring developers love their IDEs and code editors. And, we want them to continue to use the tools that they love. Therefore, we implemented most parts of the Spring Tools 4 in an IDE-agnostic way. You can use them in:
- Eclipse (https://www.eclipse.org/downloads or the STS4 distribution from https://spring.io/tools)
- Visual Studio Code (https://code.visualstudio.com)
- Atom IDE (https://ide.atom.io)
And, that is just the beginning. We expect more environments to join this party in the future.
Re-Built From Scratch
To realize these all-new Spring Tools 4, we decided to re-write most of the Spring tooling from scratch - with these goals in mind from the beginning:
- Let's be IDE-agnostic — let every developer continue to use the environments they love.
- Build for performance right from the start — we hate to wait for our IDE or editor to finish before we can continue coding. Therefore, the Spring Tools 4 are designed to never block the user plus deliver results quickly.
- Build for modern Spring technologies — the tools focus on Spring Boot and annotation-driven Spring app development.
Moving forward, the Spring Tools 4 will receive continuous updates with bug fixes as well as new and improved features. Those updates will appear as updates automatically in your installation across all environments. The Eclipse-based distribution will also be updated continuously, even across Eclipse platform versions, so you will always be on the latest and greatest.
- Download the release from here: https://spring.io/tools
- Installation instructions: https://github.com/spring-projects/sts4/wiki/Installation
- To learn more, take a look at the user guide here: https://github.com/spring-projects/sts4/wiki/User-Guide
Watch Spring Tools 4 in Action
Josh Long recorded a new and comprehensive "Getting Started With Spring Boot and Spring Tools 4" video, showing Spring Tools 4 for Eclipse in action. Take a look:
What Will Happen to the old STS 3.9.x Tooling?
We will continue to ship updates for STS 3.9.x as a full distribution until mid of 2019 and will update the distribution to the upcoming Eclipse releases (2018-09, 2018-12, and beyond). In case you still need important parts of the old tooling in Eclipse that haven't been supported in Spring Tools 4 for Eclipse, you will be able to install those parts as add-on features into the Spring Tools 4 Eclipse distribution and those parts will continue to receive maintenance updates until mid of 2019. After mid of 2019, the old STS 3.9.x tooling will receive no maintenance updates anymore.
Are the Spring Tools 4 Ready for Boot 2.1 and Spring Framework 5.1?
Yes, the Spring Tools 4 are ready for usage with various Spring Boot versions (including 1.5.x, 2.0.x and 2.1.x) as well as the latest Spring Framework versions (including 4.x and 5.x).
Do the Spring Tools 4 Include Java Language Support?
The ready-to-use Spring Tools 4 distribution on top of Eclipse includes the standard Java language tooling of Eclipse out-of-the-box. For Visual Studio Code, you should install the Java Extension Pack, which is a combination of the regular Java language tooling (provided from RedHat and Eclipse) and the launching, testing, and debugging support for Java for Visual Studio Code (from Microsoft). For Atom, there is also a Java extension around (that is based on the same code as the Java support for Visual Studio Code).
Do the Spring Tools 4 Support JDK9, JDK10, JDK11?
Yes. You can use JDK 8/9/10/11 to run your Spring Tools 4. Language support for Java within your projects, however, is limited to JDK 8/9/10. Full language support for JDK11 will arrive with a future update soon.
Do the Spring Tools 4 Support Lombok?
Yes, you can use Lombok in your projects when using the Spring Tools 4 in the various environments.
Can I Install and Use Spring Tools 4 in IntelliJ IDEA?
No. We implemented a prototype to integrate the Spring Tools 4 with IntelliJ IDEA, but the third-party support for the language server protocol for IntelliJ isn't mature, stable, and feature-rich enough to implement a meaningful version of the Spring Tools 4 for IntelliJ yet. However, there is awesome support for Spring available out-of-the-box in the IntelliJ Ultimate Edition that you can use instead if you prefer IntelliJ.
Which Other IDEs and Editors Will Be Supported in the Future?
We don't have exact plans yet, but we are constantly monitoring the language server community for new and emerging clients and environments that might be good candidates for the Spring Tools 4. Eclipse Theia is one of the projects we are taking into account at the moment, for example.
Published at DZone with permission of Martin Lippert. See the original article here.
Opinions expressed by DZone contributors are their own.