Getting Started With Spring Boot
Getting Started With Spring Boot
Table Content
1. Spring framework
2. What is Spring Boot
3. Features of Spring Boot
4. Creating Spring Boot Application
Spring Framework
Spring Framework is an open source application framework created by Rod Johnson in 2003.
It a lightweight solution for enterprise applications.
Spring framework is said to be a non-invasive.
it is modular and extendible for other frameworks.
Here we can select all the dependencies which we required for our project.
Click on finish.
When we click on Finish button, project generation and import process will start.
Now we can run our application with an embedded server by selecting Run As Spring Boot Application from the Run menu.
3. Using CLI
First of all we need to install Spring Boot CLI.
We can download the distribution archive from either of these locations:
http://repo.spring.io/release/org/springframework/boot/spring-boot-cli/1.3.0.RELEASE/spring-boot-cli-1.3.0.RELEASE-bin.zip
Now unzip it, and add its bin directory to our system path.
Now we’re ready to use the Spring Boot CLI.
The Spring Boot CLI includes an init command that is used to create a baseline Sprin Boot project:
$ spring init
If we want to start out by building a web application that uses JPA for data persistence and that’s secured with Spring Security. We
can specify those initial dependencies with either --dependencies or -d:
$ spring init -dweb,jpa,security
This will give us a demo.zip containing the same project structure
Now we can import this project into eclipse and run the application.
Thank You