<div dir&equals;"ltr" style&equals;"text-align&colon; justify&semi;">&NewLine;<div style&equals;"text-align&colon; justify&semi;">&NewLine;<div style&equals;"font-size&colon; 12pt&semi;">&NewLine;<div style&equals;"font-family&colon; calibri&comma; sans-serif&semi; font-size&colon; 12pt&semi;">You can use Spring Boot in the same way as any standard Java library&period; Simply include the appropriate <b>spring-boot-&ast;&period;jar <&sol;b>files on your classpath&period; Spring Boot does not require any special tools integration&comma; so you can use any IDE or text editor&semi; and there is nothing special about a Spring Boot application&comma; so you can run and debug as you would any other Java program&period;<&sol;div>&NewLine;<div style&equals;"font-family&colon; calibri&comma; sans-serif&semi; font-size&colon; 12pt&semi;"><&sol;div>&NewLine;<div style&equals;"font-family&colon; calibri&comma; sans-serif&semi; font-size&colon; 12pt&semi;">You can also add simply all spring boot jar files to classpath of application but we are recommending use any build tools &lpar;<b>Maven&sol;Gradle<&sol;b>&rpar; for dependencies management&period;<&sol;div>&NewLine;<div style&equals;"font-family&colon; calibri&comma; sans-serif&semi; font-size&colon; 12pt&semi;"><&sol;div>&NewLine;<h2 style&equals;"font-family&colon; calibri&comma; sans-serif&semi; font-size&colon; 12pt&semi;"><b>Maven Installation&colon;<&sol;b><&sol;h2>&NewLine;<div style&equals;"font-family&colon; calibri&comma; sans-serif&semi; font-size&colon; 12pt&semi;">Spring Boot is compatible with Apache Maven 3&period;2 or above&period; If you don’t already have Maven installed you can follow the instructions at <a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;2013&sol;02&sol;how-to-install-maven-in-windows&period;html&num;&period;V306kvl97IU"><b>How to Install Maven in Windows<&sol;b><&sol;a>&period; Ubuntu users can run <b><i>sudo apt-get install maven<&sol;i><&sol;b>&period;<&sol;div>&NewLine;<div style&equals;"font-family&colon; calibri&comma; sans-serif&semi; font-size&colon; 12pt&semi;">&NewLine;<div id&equals;"ads-id" align&equals;"center"><&sol;div>&NewLine;<&sol;div>&NewLine;<div style&equals;"font-family&colon; calibri&comma; sans-serif&semi; font-size&colon; 12pt&semi;">&NewLine;<p>Spring Boot dependencies use the<b> org&period;springframework&period;boot<&sol;b> groupId&period; Typically your Maven POM file will inherit from the <b>spring-boot-starter-parent<&sol;b> project and declare dependencies to one or more &OpenCurlyDoubleQuote;<b>Starters<&sol;b>”&period;<&sol;p>&NewLine;<&sol;div>&NewLine;<div style&equals;"font-family&colon; calibri&comma; sans-serif&semi; font-size&colon; 12pt&semi;"><b>Pom&period;xml<&sol;b><&sol;div>&NewLine;<pre class&equals;"highlight" style&equals;"font-size&colon; 12pt&semi;">&lt&semi;&quest;xml version&equals;"1&period;0" encoding&equals;"UTF-8"&quest;&gt&semi; &NewLine;&lt&semi;project xmlns&equals;"http&colon;&sol;&sol;maven&period;apache&period;org&sol;POM&sol;4&period;0&period;0" xmlns&colon;xsi&equals;"http&colon;&sol;&sol;www&period;w3&period;org&sol;2001&sol;XMLSchema-instance" &NewLine; xsi&colon;schemaLocation&equals;"http&colon;&sol;&sol;maven&period;apache&period;org&sol;POM&sol;4&period;0&period;0 http&colon;&sol;&sol;maven&period;apache&period;org&sol;xsd&sol;maven-4&period;0&period;0&period;xsd"&gt&semi; &NewLine; &lt&semi;modelVersion&gt&semi;4&period;0&period;0&lt&semi;&sol;modelVersion&gt&semi; &NewLine; &NewLine; &lt&semi;groupId&gt&semi;com&period;example&lt&semi;&sol;groupId&gt&semi; &NewLine; &lt&semi;artifactId&gt&semi;myproject&lt&semi;&sol;artifactId&gt&semi; &NewLine; &lt&semi;version&gt&semi;0&period;0&period;1-SNAPSHOT&lt&semi;&sol;version&gt&semi; &NewLine; &NewLine; &lt&semi;&excl;-- Inherit defaults from Spring Boot --&gt&semi; &NewLine; &lt&semi;parent&gt&semi; &NewLine; &lt&semi;groupId&gt&semi;org&period;springframework&period;boot&lt&semi;&sol;groupId&gt&semi; &NewLine; &lt&semi;artifactId&gt&semi;spring-boot-starter-parent&lt&semi;&sol;artifactId&gt&semi; &NewLine; &lt&semi;version&gt&semi;1&period;4&period;0&period;BUILD-SNAPSHOT&lt&semi;&sol;version&gt&semi; &NewLine; &lt&semi;&sol;parent&gt&semi; &NewLine; &NewLine; &lt&semi;&excl;-- Add typical dependencies for a web application --&gt&semi; &NewLine; &lt&semi;dependencies&gt&semi; &NewLine; &lt&semi;dependency&gt&semi; &NewLine; &lt&semi;groupId&gt&semi;org&period;springframework&period;boot&lt&semi;&sol;groupId&gt&semi; &NewLine; &lt&semi;artifactId&gt&semi;spring-boot-starter-web&lt&semi;&sol;artifactId&gt&semi; &NewLine; &lt&semi;&sol;dependency&gt&semi; &NewLine; &lt&semi;&sol;dependencies&gt&semi; &NewLine; &NewLine; &lt&semi;&excl;-- Package as an executable jar --&gt&semi; &NewLine; &lt&semi;build&gt&semi; &NewLine; &lt&semi;plugins&gt&semi; &NewLine; &lt&semi;plugin&gt&semi; &NewLine; &lt&semi;groupId&gt&semi;org&period;springframework&period;boot&lt&semi;&sol;groupId&gt&semi; &NewLine; &lt&semi;artifactId&gt&semi;spring-boot-maven-plugin&lt&semi;&sol;artifactId&gt&semi; &NewLine; &lt&semi;&sol;plugin&gt&semi; &NewLine; &lt&semi;&sol;plugins&gt&semi; &NewLine; &lt&semi;&sol;build&gt&semi; &NewLine; &NewLine; &lt&semi;&excl;-- Add Spring repositories --&gt&semi; &NewLine; &lt&semi;&excl;-- &lpar;you don't need this if you are using a &period;RELEASE version&rpar; --&gt&semi; &NewLine; &lt&semi;repositories&gt&semi; &NewLine; &lt&semi;repository&gt&semi; &NewLine; &lt&semi;id&gt&semi;spring-snapshots&lt&semi;&sol;id&gt&semi; &NewLine; &lt&semi;url&gt&semi;http&colon;&sol;&sol;repo&period;spring&period;io&sol;snapshot&lt&semi;&sol;url&gt&semi; &NewLine; &lt&semi;snapshots&gt&semi;&lt&semi;enabled&gt&semi;true&lt&semi;&sol;enabled&gt&semi;&lt&semi;&sol;snapshots&gt&semi; &NewLine; &lt&semi;&sol;repository&gt&semi; &NewLine; &lt&semi;repository&gt&semi; &NewLine; &lt&semi;id&gt&semi;spring-milestones&lt&semi;&sol;id&gt&semi; &NewLine; &lt&semi;url&gt&semi;http&colon;&sol;&sol;repo&period;spring&period;io&sol;milestone&lt&semi;&sol;url&gt&semi; &NewLine; &lt&semi;&sol;repository&gt&semi; &NewLine; &lt&semi;&sol;repositories&gt&semi; &NewLine; &lt&semi;pluginRepositories&gt&semi; &NewLine; &lt&semi;pluginRepository&gt&semi; &NewLine; &lt&semi;id&gt&semi;spring-snapshots&lt&semi;&sol;id&gt&semi; &NewLine; &lt&semi;url&gt&semi;http&colon;&sol;&sol;repo&period;spring&period;io&sol;snapshot&lt&semi;&sol;url&gt&semi; &NewLine; &lt&semi;&sol;pluginRepository&gt&semi; &NewLine; &lt&semi;pluginRepository&gt&semi; &NewLine; &lt&semi;id&gt&semi;spring-milestones&lt&semi;&sol;id&gt&semi; &NewLine; &lt&semi;url&gt&semi;http&colon;&sol;&sol;repo&period;spring&period;io&sol;milestone&lt&semi;&sol;url&gt&semi; &NewLine; &lt&semi;&sol;pluginRepository&gt&semi; &NewLine; &lt&semi;&sol;pluginRepositories&gt&semi; &NewLine;&lt&semi;&sol;project&gt&semi; &NewLine;<&sol;pre>&NewLine;<div style&equals;"font-size&colon; 12pt&semi;"><&sol;div>&NewLine;<h2 style&equals;"font-size&colon; 12pt&semi;"><b>Gradle installation&colon;<&sol;b><&sol;h2>&NewLine;<div style&equals;"font-size&colon; 12pt&semi;"> Spring Boot is compatible with Gradle 1&period;12 or above&period; If you don’t already have Gradle installed you can follow the instructions at <a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;2015&sol;01&sol;how-to-install-gradle&period;html&num;&period;V308Gfl97IU"><b>How to Install Gradle<&sol;b><&sol;a>&period; Spring Boot dependencies can be declared using the <b>org&period;springframework&period;boot <&sol;b>group&period; Typically your project will declare dependencies to one or more &OpenCurlyDoubleQuote;<b>Starters<&sol;b>”&period; Spring Boot provides a useful Gradle plugin that can be used to simplify dependency declarations and to create executable jars&period;<&sol;div>&NewLine;<div style&equals;"font-size&colon; 12pt&semi;"><&sol;div>&NewLine;<div style&equals;"font-size&colon; 12pt&semi;"><b>build&period;gradle<&sol;b><&sol;div>&NewLine;<pre class&equals;"highlight" style&equals;"font-size&colon; 12pt&semi;">buildscript &lbrace; &NewLine; repositories &lbrace; &NewLine; jcenter&lpar;&rpar; &NewLine; maven &lbrace; url "http&colon;&sol;&sol;repo&period;spring&period;io&sol;snapshot" &rcub; &NewLine; maven &lbrace; url "http&colon;&sol;&sol;repo&period;spring&period;io&sol;milestone" &rcub; &NewLine; &rcub; &NewLine; dependencies &lbrace; &NewLine; classpath&lpar;"org&period;springframework&period;boot&colon;spring-boot-gradle-plugin&colon;1&period;4&period;0&period;BUILD-SNAPSHOT"&rpar; &NewLine; &rcub; &NewLine;&rcub; &NewLine; &NewLine;apply plugin&colon; 'java' &NewLine;apply plugin&colon; 'spring-boot' &NewLine; &NewLine;jar &lbrace; &NewLine; baseName &equals; 'myproject' &NewLine; version &equals; '0&period;0&period;1-SNAPSHOT' &NewLine;&rcub; &NewLine; &NewLine;repositories &lbrace; &NewLine; jcenter&lpar;&rpar; &NewLine; maven &lbrace; url "http&colon;&sol;&sol;repo&period;spring&period;io&sol;snapshot" &rcub; &NewLine; maven &lbrace; url "http&colon;&sol;&sol;repo&period;spring&period;io&sol;milestone" &rcub; &NewLine;&rcub; &NewLine; &NewLine;dependencies &lbrace; &NewLine; compile&lpar;"org&period;springframework&period;boot&colon;spring-boot-starter-web"&rpar; &NewLine; testCompile&lpar;"org&period;springframework&period;boot&colon;spring-boot-starter-test"&rpar; &NewLine;&rcub; &NewLine; &NewLine;<&sol;pre>&NewLine;<div style&equals;"font-size&colon; 12pt&semi;"><&sol;div>&NewLine;<h2><b>Installing the Spring Boot CLI&colon;<&sol;b><&sol;h2>&NewLine;<div style&equals;"font-size&colon; 12pt&semi;">The Spring Boot CLI is a command line tool that can be used if you want to quickly prototype with Spring&period; It allows you to run Groovy scripts&comma; which means that you have a familiar Java-like syntax&comma; without so much boilerplate code&period;<&sol;div>&NewLine;<div style&equals;"font-size&colon; 12pt&semi;"><&sol;div>&NewLine;<div style&equals;"font-size&colon; 12pt&semi;">You can follow the instructions at <b><a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;spring-boot-cli-installation-and-hello-world-example&sol;">Spring Boot CLI installation<&sol;a> <&sol;b>to setup the Spring Boot CLI&period;<&sol;div>&NewLine;<p>In the coming tutorial we will create the first Spring Boot Application&period;<&sol;p>&NewLine;<p>Happy Spring Boot Learning &colon;&rpar;<&sol;p>&NewLine;<div style&equals;"background-color&colon; &num;f2f9fc&semi; border-radius&colon; 3px&semi; border&colon; 1px solid &num;c9e6f2&semi; line-height&colon; 1&period;45&semi; padding&colon; 16px&semi;">&NewLine;<p><b>Spring Boot Related Topics<&sol;b><&sol;p>&NewLine;<ol style&equals;"text-align&colon; left&semi;">&NewLine;<li><b><a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;introduction-to-spring-boot-a-spring-boot-complete-guide&sol;">Introduction to Spring Boo<&sol;a>t<&sol;b><&sol;li>&NewLine;<li><a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;essentials-key-components-and-internals-of-spring-boot-framework&sol;"><b>Essentials and Key Components of Spring Boot<&sol;b><&sol;a><&sol;li>&NewLine;<li><a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;spring-boot-cli-installation-and-hello-world-example&sol;"><b>Spring Boot CLI Installation and Hello World Example<&sol;b><&sol;a><&sol;li>&NewLine;<li><a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;spring-boot-initilizr-web-interface-and-examples&sol;"><b>Spring Boot Initializr Web Interface<&sol;b><&sol;a><&sol;li>&NewLine;<li><a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;spring-boot-initilizr-with-ides-via-spring-tool-suite&sol;"><b>Spring Boot Initializr With IDEs<&sol;b><&sol;a><&sol;li>&NewLine;<li><a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;spring-boot-initializr-with-spring-boot-cli&sol;"><b>Spring Boot Initializr With Spring Boot CLI<&sol;b><&sol;a><&sol;li>&NewLine;<li><a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;installing-spring-boot&sol;"><b>Installing Spring Boot<&sol;b><&sol;a><&sol;li>&NewLine;<li><a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;developing-your-first-spring-boot-application-hello-world&sol;"><b>Developing your first Spring Boot application<&sol;b><&sol;a><&sol;li>&NewLine;<li><a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;customizing-spring-boot-auto-configuration&sol;"><b>External Configurations for Spring Boot Applications<&sol;b><&sol;a><&sol;li>&NewLine;<li><a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;logging-configuration-in-spring-boot&sol;"><b>Logging Configuration in Spring Boot<&sol;b><&sol;a><&sol;li>&NewLine;<li><a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;spring-boot-with-spring-mvc-application&sol;"><b>Spring Boot and Spring MVC<&sol;b><&sol;a><&sol;li>&NewLine;<li><a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;working-with-sql-databases-in-spring-boot-application&sol;"><b>Working with SQL Databases and Spring Boot<&sol;b><&sol;a><&sol;li>&NewLine;<li><a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;mysql-configuration-with-spring-boot&sol;"><b>MySQL Configurations<&sol;b><&sol;a><&sol;li>&NewLine;<li><a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;spring-data-jpa-using-in-spring-boot-application&sol;"><b>Spring Data JPA using Spring Boot Application<&sol;b><&sol;a><&sol;li>&NewLine;<li><a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;spring-boot-with-nosql-technologies&sol;"><b>Spring Boot with NoSQL technologies<&sol;b><&sol;a><&sol;li>&NewLine;<li><a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;spring-cache-tutorial&sol;"><b>Spring Cache Tutorial<&sol;b><&sol;a><&sol;li>&NewLine;<li><a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;spring-security-tutorial-using-spring-boot&sol;"><b>Spring Security Tutorial with Spring Boot<&sol;b><&sol;a><&sol;li>&NewLine;<li><a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;spring-boot-and-mongodb-in-rest-application&sol;"><b>Spring Boot and MongoDB in REST Application<&sol;b><&sol;a><&sol;li>&NewLine;<li><b><a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;spring-boot-actuator-complete-guide&sol;">Complete Guide for Spring Boot Actuator<&sol;a><&sol;b><&sol;li>&NewLine;<li><b><a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;microservices-with-spring-boot&sol;">Microservices with Spring Boot<&sol;a><&sol;b><&sol;li>&NewLine;<&sol;ol>&NewLine;<&sol;div>&NewLine;<p>&nbsp&semi;<&sol;p>&NewLine;<&sol;div>&NewLine;<&sol;div>&NewLine;<&sol;div>&NewLine;<div class&equals;"wp-post-navigation"> &NewLine;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab; <div class&equals;"wp-post-navigation-pre"> &NewLine;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab; <a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;spring-boot-initializr-with-spring-boot-cli&sol;">Previous<&sol;a> &NewLine;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab; <&sol;div> &NewLine;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab; <div class&equals;"wp-post-navigation-next"> &NewLine;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab; <a href&equals;"https&colon;&sol;&sol;dineshonjava&period;com&sol;developing-your-first-spring-boot-application-hello-world&sol;">Next<&sol;a> &NewLine;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab; <&sol;div> &NewLine;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab;&Tab;<&sol;div>&NewLine;<script type&equals;"text&sol;javascript">&NewLine;jQuery&lpar;document&rpar;&period;ready&lpar;function&lpar;&dollar;&rpar; &lbrace;&NewLine; &dollar;&period;post&lpar;'https&colon;&sol;&sol;dineshonjava&period;com&sol;wp-admin&sol;admin-ajax&period;php'&comma; &lbrace;action&colon; 'mts&lowbar;view&lowbar;count'&comma; id&colon; '141'&rcub;&rpar;&semi;&NewLine;&rcub;&rpar;&semi;&NewLine;<&sol;script>

Dinesh Rajput

Dinesh Rajput is the chief editor of a website Dineshonjava, a technical blog dedicated to the Spring and Java technologies. It has a series of articles related to Java technologies. Dinesh has been a Spring enthusiast since 2008 and is a Pivotal Certified Spring Professional, an author of a book Spring 5 Design Pattern, and a blogger. He has more than 10 years of experience with different aspects of Spring and Java design and development. His core expertise lies in the latest version of Spring Framework, Spring Boot, Spring Security, creating REST APIs, Microservice Architecture, Reactive Pattern, Spring AOP, Design Patterns, Struts, Hibernate, Web Services, Spring Batch, Cassandra, MongoDB, and Web Application Design and Architecture. He is currently working as a technology manager at a leading product and web development company. He worked as a developer and tech lead at the Bennett, Coleman & Co. Ltd and was the first developer in his previous company, Paytm. Dinesh is passionate about the latest Java technologies and loves to write technical blogs related to it. He is a very active member of the Java and Spring community on different forums. When it comes to the Spring Framework and Java, Dinesh tops the list!

Share
Published by
Dinesh Rajput

Recent Posts

Strategy Design Patterns using Lambda

Strategy Design Patterns We can easily create a strategy design pattern using lambda. To implement…

4 years ago

Decorator Pattern using Lambda

Decorator Pattern A decorator pattern allows a user to add new functionality to an existing…

4 years ago

Delegating pattern using lambda

Delegating pattern In software engineering, the delegation pattern is an object-oriented design pattern that allows…

4 years ago

Spring Vs Django- Know The Difference Between The Two

Technology has emerged a lot in the last decade, and now we have artificial intelligence;…

4 years ago

TOP 20 MongoDB INTERVIEW QUESTIONS 2022

Managing a database is becoming increasingly complex now due to the vast amount of data…

4 years ago

Scheduler @Scheduled Annotation Spring Boot

Overview In this article, we will explore Spring Scheduler how we could use it by…

4 years ago