Spring Boot CLI Tutorial
Selected Reading
- 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 - Creating Project
Spring Boot CLI - Creating Project
Spring Boot CLI can be used to create a new project with maven as default build tool using init command. Maven will use
service. In the following example, we will create a web apppcation using thymeleaf. Go to E:Test folder and type the following command −E:/Test> spring init --dependencies = web,thymeleaf MavenApppcation.zip
The above command will generate the following output −
Using service at https://start.spring.io Content saved to MavenApppcation.zip
Create Gradle project
We can create a Gradle based project as well by setting --build as gradle. To understand this in a better way, consider the example given below. Go to E:Test folder and type the following command −
E:/Test> spring init --build = gradle --java-version = 1.8 --dependencies = web,thymeleaf --packaging = war GradleApppcation.zip
The above command will generate the following output −
Using service at https://start.spring.io Content saved to GradleApppcation.zipAdvertisements