Install And Setup of Spring Boot

Please ensure to Install Java 8 and above versions

Install And Setup for Spring Boot

I would be exploring two different options for creating the Spring Boot projects
  1. Spring Boot CLI
  2. Spring Tools Suite(STS) in Eclipse.
Spring Boot CLI(Command Line Interface) 
 
Spring Boot CLI(Command Line Interface) is a Spring Boot software to run and test Spring Boot applications from command prompt.When we run Spring Boot applications using CLI, then it internally uses Spring Boot Starter and Spring Boot AutoConfigurate components to resolve all dependencies and execute the application.

Spring Boot CLI Setup And Maven Apache
  • Step 1:First we should download the Maven Apache and Spring Boot CLI for creating Spring Boot projects
  • Step 2: Download the Maven Apache in maven official site link given  https://maven.apache.org/website ,Here you can download the Maven Zip file for example Apache-maven-3.5.2-bin-zip.
  • Step 3: Unzip it to the folder you want to install Apache Maven,Am just unzipping to the C Directory:Apache-maven-3.5.2-bin-zip.

                         
  • Step 4:Next Adding M2_HOME and MAVEN_HOME variables in windows environment and point into maven folder.Click computer icon--properties--Advanced system settings--Environment variables--New--Add--click OK.




 
  • Step 5:In system variables update the PATH variables and add the Maven Bin folder refer the below image. 
 
  • Step 6: In Command prompt we can check whether maven its installed or not using mvn-version command. 

   

  • Step 9: Adding SPRING_HOME variables in windows environment and point into Spring folder. and update the PATH variables append the Spring bin folder -C:spring-boot-cli-2.1.8.RELEASE-bin.zip.Refer below snapshot.

 
  • Step 10:Verify the Spring CLI installed or not,with spring -version command in command prompt.
  • Step 11: mvn spring-boot:run with this command you can run spring boot project in command prompt.
Spring Tool Suite(STS)
         Spring Tool Suite is an IDE to develop Spring applications. It is an Eclipse-based development environment. It provides a ready-to-use environment to implement, run, deploy, and debug the application. It validates our application and provides quick fixes for the applications.

Install Spring Tool Suite(STS) in Eclipse
  • Step 1: Download the latest version of Eclipse IDE from the respective official website,some versions are like neon 4.6 are not supported for spring tool suite(STS) so download the updated one.
  • Step 2:After installing the Eclipse IDE on your pc or laptop, Go to Help -->Eclipse marketplace -->Search-->Spring tool suite or STS and Install it. refer the below snapshot.


Comments

Popular posts from this blog

System Requirements For Spring Boot

Creating a Spring Boot project with Spring Initializer

Creating Simple Spring Boot Application Using STS In Eclipse