- Spring Boot CLI - Discussion
- Spring Boot CLI - Useful Resources
- Spring Boot CLI - Quick Guide
- Spring Boot CLI - Using Shell
- Spring Boot CLI - Creating Project
- Spring Boot CLI - Packaging Application
- Spring Boot CLI - Starter Thymeleaf Project
- Spring Boot CLI - Default Statements
- Spring Boot CLI - "grab" Co-Ordination Deduction
- Spring Boot CLI - "grab" Dependency Deduction
- Spring Boot CLI - Hello World Example
- Spring Boot CLI - Environment Setup
- Spring Boot CLI - Overview
- Spring Boot CLI - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Spring Boot CLI - Environment Setup
Spring is a Java-based framework; hence, we need to set up JDK first. Following are the steps needed to setup Spring Boot CLI along with JDK installation.
Step 1 Setup Java Development Kit (JDK)
You can download the latest version of SDK from Oracle s Java site −
You will find instructions for instalpng JDK in downloaded files, follow the given instructions to install and configure the setup. Finally set PATH and JAVA_HOME environment variables to refer to the directory that contains java and javac, typically java_install_dir/bin and java_install_dir respectively.If you are running Windows and have installed the JDK in C:jdk-11.0.11, you would have to put the following pne in your C:autoexec.bat file.
set PATH=C:jdk-11.0.11;%PATH% set JAVA_HOME=C:jdk-11.0.11
Alternatively, on Windows NT/2000/XP, you will have to right-cpck on My Computer, select Properties → Advanced → Environment Variables. Then, you will have to update the PATH value and cpck the OK button.
On Unix (Solaris, Linux, etc.), if the SDK is installed in /usr/local/jdk-11.0.11 and you use the C shell, you will have to put the following into your .cshrc file.
setenv PATH /usr/local/jdk-11.0.11/bin:$PATH setenv JAVA_HOME /usr/local/jdk-11.0.11
Step 2 - Install Spring Boot CLI
You can download the latest version of Spring Boot CLI API as ZIP archive from
. Once you download the installation, unpack the zip distribution into a convenient location. For example, in E:Testspring-boot-cp-2.6.3 on Windows, or /usr/local/spring-boot-cp-2.6.3 on Linux/Unix.Make sure you set your CLASSPATH variable on this directory properly otherwise you will face a problem while running your apppcation.
Or set the path in command prompt temporarily to run the spring boot apppcation as shown below −
E:/Test/> set path=E:Testspring-boot-cp-2.6.3-binspring-2.6.3in;%PATH%
Step 3 - Verify installation
Run the following command on command prompt to verify the installation −
E:/Test/> spring --version
It should print the following output confirming the successful installation −
Spring CLI v2.6.3Advertisements