
Import .annotation.STS understands almost all the most common java project structures.

Modify the SpringBootExampleApplication.java file as shown in the following code: package Our app will know what content to show when we navigate to the root URL via a request mapping. Figure 5 shows the project structure and the content of the main class in the editor:įigure 5: Project Structure and Main Class Setting the Request Mapping

The project will contain one main Java class, called HelloWorldApplication.java, as well as a Java class for testing purposes, an empty properties file, a Maven POM file, and two files to execute the application from the command line. STS will create the project for you and download all of the required dependencies. Then, select the Web checkbox (see Figure 4). In the New Spring Starter Project Dependencies window, use the search field and type “web” into it. When you’re done, your project settings should match these shown in Figure 3: For example, if you use “helloworld” as the artifact, the final JAR file will be called helloworld.jar. Artifact is the name of the JAR file you are going to build. Assign a Group of “com.developer” for the package name. Select Maven as the build tool, and JAR packaging and your Java version. On the New Spring Starter Project dialog, you’ll have to choose a name for your project. Select it and confirm your choice by clicking on the “Next” button: You’ll see the “Spring Starter Project” in the “Spring Boot” folder, as you can see in Figure 2. Navigate to File > New > Other… from the main menu or press Ctrl+N on your keyboard to open the wizard. It is accessible from the New Project Wizard. STS includes its own starter project to get you started. Once it appears in the search results, click the “install” button to proceed, as shown in Figure 1:įigure 1: STS in Marketplace Creating a New Project Just select Help > Eclipse Marketplace… from the main menu and type “STS” in the search bar of the Eclipse Marketplace dialog.

The easiest way to install STS is right from within Eclipse. In this tutorial, we’ll employ STS to create a basic Hello World Web app in Eclipse. Now at version 4, Spring Tools provides top-notch support for developing Spring-based enterprise applications in Eclipse, Visual Studio Code, and Atom IDE. As it happens, Spring offers the Spring Tool Suite (STS) for your favorite coding environment. It even comes with an embedded Tomcat Web server for running your applications as a standalone app!Īlthough Spring Boot is not associated with any particular IDE, being a Java tool set makes it a perfect candidate for development in Eclipse. Spring Boot is a framework and tool suite for developing and deploying Spring-based applications quickly and with very little configuration.
