

Step 4: Extract the tarball using below command from the command prompt: tar -xzvf spring-tool-suite-tarball.x86_64.tar.gz Step3: Change the permission of the Spring tarball using below command: chmod 777 spring-tool-suite-tarball.x86_64.tar.gz

Step2: After downloading the tarball, move into Java path for better compatibility. Then select the Linux operating system to download the tarball from the site. JDK 1.7 or more version for compatibility Installation of STS on Ubuntu 16.04: It is working like Eclipse IDE but very fast and easier to Spring applications. It is used to deploy Spring applications directly. Import .annotation.STS: Spring Tool Suite is ready to run a time environment for Java, Scala, Groovy, Kotlin, and etc programming languages.

Src/main/java/netgloo/controllers/MainController.javaĬontaining the following code: package ntrollers Create a new folder “controllers” in “src/main/java/netgloo” and add a java class “MainController” inside that folder:.Now you should get a project structure like this: basewebapp/ Will be downloaded a basic project template from the Spring web site.Search and select the “Web” dependency, then click Finish. Note: Group and Artifact are from Maven, and here there is a brief explanation if you want to follow their conventions.

Package name: the java root package name (e.g.Description: a brief human readable description (e.g.Artifact: the name of the jar file (e.g.Group: a group name for your projects (e.g.Right click on the project panel (or go on Menu > File) then New > Spring Starter Project.This post show you how to build a basic web application with Spring MVC + Spring Boot using Spring Tool Suite (STS).įirst will be created a base starting project from Eclipse, then a very simple controller will be added returning a string as view content, and finally will be show how to serve an html file from the controller.
