<div dir="ltr" style="text-align: justify;">
<div style="text-align: justify;">
<div style="font-size: 12pt;">
<div style="font-family: calibri, sans-serif; font-size: 12pt;">You can use Spring Boot in the same way as any standard Java library. Simply include the appropriate <b>spring-boot-*.jar </b>files on your classpath. Spring Boot does not require any special tools integration, so you can use any IDE or text editor; and there is nothing special about a Spring Boot application, so you can run and debug as you would any other Java program.</div>
<div style="font-family: calibri, sans-serif; font-size: 12pt;"></div>
<div style="font-family: calibri, sans-serif; font-size: 12pt;">You can also add simply all spring boot jar files to classpath of application but we are recommending use any build tools (<b>Maven/Gradle</b>) for dependencies management.</div>
<div style="font-family: calibri, sans-serif; font-size: 12pt;"></div>
<h2 style="font-family: calibri, sans-serif; font-size: 12pt;"><b>Maven Installation:</b></h2>
<div style="font-family: calibri, sans-serif; font-size: 12pt;">Spring Boot is compatible with Apache Maven 3.2 or above. If you don’t already have Maven installed you can follow the instructions at <a href="https://dineshonjava.com/2013/02/how-to-install-maven-in-windows.html#.V306kvl97IU"><b>How to Install Maven in Windows</b></a>. Ubuntu users can run <b><i>sudo apt-get install maven</i></b>.</div>
<div style="font-family: calibri, sans-serif; font-size: 12pt;">
<div id="ads-id" align="center"></div>
</div>
<div style="font-family: calibri, sans-serif; font-size: 12pt;">
<p>Spring Boot dependencies use the<b> org.springframework.boot</b> groupId. Typically your Maven POM file will inherit from the <b>spring-boot-starter-parent</b> project and declare dependencies to one or more “<b>Starters</b>”.</p>
</div>
<div style="font-family: calibri, sans-serif; font-size: 12pt;"><b>Pom.xml</b></div>
<pre class="highlight" style="font-size: 12pt;"><;?xml version="1.0" encoding="UTF-8"?>; 
<;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">; 
 <;modelVersion>;4.0.0<;/modelVersion>; 
 
 <;groupId>;com.example<;/groupId>; 
 <;artifactId>;myproject<;/artifactId>; 
 <;version>;0.0.1-SNAPSHOT<;/version>; 
 
 <;!-- Inherit defaults from Spring Boot -->; 
 <;parent>; 
 <;groupId>;org.springframework.boot<;/groupId>; 
 <;artifactId>;spring-boot-starter-parent<;/artifactId>; 
 <;version>;1.4.0.BUILD-SNAPSHOT<;/version>; 
 <;/parent>; 
 
 <;!-- Add typical dependencies for a web application -->; 
 <;dependencies>; 
 <;dependency>; 
 <;groupId>;org.springframework.boot<;/groupId>; 
 <;artifactId>;spring-boot-starter-web<;/artifactId>; 
 <;/dependency>; 
 <;/dependencies>; 
 
 <;!-- Package as an executable jar -->; 
 <;build>; 
 <;plugins>; 
 <;plugin>; 
 <;groupId>;org.springframework.boot<;/groupId>; 
 <;artifactId>;spring-boot-maven-plugin<;/artifactId>; 
 <;/plugin>; 
 <;/plugins>; 
 <;/build>; 
 
 <;!-- Add Spring repositories -->; 
 <;!-- (you don't need this if you are using a .RELEASE version) -->; 
 <;repositories>; 
 <;repository>; 
 <;id>;spring-snapshots<;/id>; 
 <;url>;http://repo.spring.io/snapshot<;/url>; 
 <;snapshots>;<;enabled>;true<;/enabled>;<;/snapshots>; 
 <;/repository>; 
 <;repository>; 
 <;id>;spring-milestones<;/id>; 
 <;url>;http://repo.spring.io/milestone<;/url>; 
 <;/repository>; 
 <;/repositories>; 
 <;pluginRepositories>; 
 <;pluginRepository>; 
 <;id>;spring-snapshots<;/id>; 
 <;url>;http://repo.spring.io/snapshot<;/url>; 
 <;/pluginRepository>; 
 <;pluginRepository>; 
 <;id>;spring-milestones<;/id>; 
 <;url>;http://repo.spring.io/milestone<;/url>; 
 <;/pluginRepository>; 
 <;/pluginRepositories>; 
<;/project>; 
</pre>
<div style="font-size: 12pt;"></div>
<h2 style="font-size: 12pt;"><b>Gradle installation:</b></h2>
<div style="font-size: 12pt;"> Spring Boot is compatible with Gradle 1.12 or above. If you don’t already have Gradle installed you can follow the instructions at <a href="https://dineshonjava.com/2015/01/how-to-install-gradle.html#.V308Gfl97IU"><b>How to Install Gradle</b></a>. Spring Boot dependencies can be declared using the <b>org.springframework.boot </b>group. Typically your project will declare dependencies to one or more “<b>Starters</b>”. Spring Boot provides a useful Gradle plugin that can be used to simplify dependency declarations and to create executable jars.</div>
<div style="font-size: 12pt;"></div>
<div style="font-size: 12pt;"><b>build.gradle</b></div>
<pre class="highlight" style="font-size: 12pt;">buildscript { 
 repositories { 
 jcenter() 
 maven { url "http://repo.spring.io/snapshot" } 
 maven { url "http://repo.spring.io/milestone" } 
 } 
 dependencies { 
 classpath("org.springframework.boot:spring-boot-gradle-plugin:1.4.0.BUILD-SNAPSHOT") 
 } 
} 
 
apply plugin: 'java' 
apply plugin: 'spring-boot' 
 
jar { 
 baseName = 'myproject' 
 version = '0.0.1-SNAPSHOT' 
} 
 
repositories { 
 jcenter() 
 maven { url "http://repo.spring.io/snapshot" } 
 maven { url "http://repo.spring.io/milestone" } 
} 
 
dependencies { 
 compile("org.springframework.boot:spring-boot-starter-web") 
 testCompile("org.springframework.boot:spring-boot-starter-test") 
} 
 
</pre>
<div style="font-size: 12pt;"></div>
<h2><b>Installing the Spring Boot CLI:</b></h2>
<div style="font-size: 12pt;">The Spring Boot CLI is a command line tool that can be used if you want to quickly prototype with Spring. It allows you to run Groovy scripts, which means that you have a familiar Java-like syntax, without so much boilerplate code.</div>
<div style="font-size: 12pt;"></div>
<div style="font-size: 12pt;">You can follow the instructions at <b><a href="https://dineshonjava.com/spring-boot-cli-installation-and-hello-world-example/">Spring Boot CLI installation</a> </b>to setup the Spring Boot CLI.</div>
<p>In the coming tutorial we will create the first Spring Boot Application.</p>
<p>Happy Spring Boot Learning :)</p>
<div style="background-color: #f2f9fc; border-radius: 3px; border: 1px solid #c9e6f2; line-height: 1.45; padding: 16px;">
<p><b>Spring Boot Related Topics</b></p>
<ol style="text-align: left;">
<li><b><a href="https://dineshonjava.com/introduction-to-spring-boot-a-spring-boot-complete-guide/">Introduction to Spring Boo</a>t</b></li>
<li><a href="https://dineshonjava.com/essentials-key-components-and-internals-of-spring-boot-framework/"><b>Essentials and Key Components of Spring Boot</b></a></li>
<li><a href="https://dineshonjava.com/spring-boot-cli-installation-and-hello-world-example/"><b>Spring Boot CLI Installation and Hello World Example</b></a></li>
<li><a href="https://dineshonjava.com/spring-boot-initilizr-web-interface-and-examples/"><b>Spring Boot Initializr Web Interface</b></a></li>
<li><a href="https://dineshonjava.com/spring-boot-initilizr-with-ides-via-spring-tool-suite/"><b>Spring Boot Initializr With IDEs</b></a></li>
<li><a href="https://dineshonjava.com/spring-boot-initializr-with-spring-boot-cli/"><b>Spring Boot Initializr With Spring Boot CLI</b></a></li>
<li><a href="https://dineshonjava.com/installing-spring-boot/"><b>Installing Spring Boot</b></a></li>
<li><a href="https://dineshonjava.com/developing-your-first-spring-boot-application-hello-world/"><b>Developing your first Spring Boot application</b></a></li>
<li><a href="https://dineshonjava.com/customizing-spring-boot-auto-configuration/"><b>External Configurations for Spring Boot Applications</b></a></li>
<li><a href="https://dineshonjava.com/logging-configuration-in-spring-boot/"><b>Logging Configuration in Spring Boot</b></a></li>
<li><a href="https://dineshonjava.com/spring-boot-with-spring-mvc-application/"><b>Spring Boot and Spring MVC</b></a></li>
<li><a href="https://dineshonjava.com/working-with-sql-databases-in-spring-boot-application/"><b>Working with SQL Databases and Spring Boot</b></a></li>
<li><a href="https://dineshonjava.com/mysql-configuration-with-spring-boot/"><b>MySQL Configurations</b></a></li>
<li><a href="https://dineshonjava.com/spring-data-jpa-using-in-spring-boot-application/"><b>Spring Data JPA using Spring Boot Application</b></a></li>
<li><a href="https://dineshonjava.com/spring-boot-with-nosql-technologies/"><b>Spring Boot with NoSQL technologies</b></a></li>
<li><a href="https://dineshonjava.com/spring-cache-tutorial/"><b>Spring Cache Tutorial</b></a></li>
<li><a href="https://dineshonjava.com/spring-security-tutorial-using-spring-boot/"><b>Spring Security Tutorial with Spring Boot</b></a></li>
<li><a href="https://dineshonjava.com/spring-boot-and-mongodb-in-rest-application/"><b>Spring Boot and MongoDB in REST Application</b></a></li>
<li><b><a href="https://dineshonjava.com/spring-boot-actuator-complete-guide/">Complete Guide for Spring Boot Actuator</a></b></li>
<li><b><a href="https://dineshonjava.com/microservices-with-spring-boot/">Microservices with Spring Boot</a></b></li>
</ol>
</div>
<p> ;</p>
</div>
</div>
</div>
<div class="wp-post-navigation"> 
									 <div class="wp-post-navigation-pre"> 
									 <a href="https://dineshonjava.com/spring-boot-initializr-with-spring-boot-cli/">Previous</a> 
									 </div> 
									 <div class="wp-post-navigation-next"> 
									 <a href="https://dineshonjava.com/developing-your-first-spring-boot-application-hello-world/">Next</a> 
									 </div> 
									</div>
<script type="text/javascript">
jQuery(document).ready(function($) {
 $.post('https://dineshonjava.com/wp-admin/admin-ajax.php', {action: 'mts_view_count', id: '141'});
});
</script>
Strategy Design Patterns We can easily create a strategy design pattern using lambda. To implement…
Decorator Pattern A decorator pattern allows a user to add new functionality to an existing…
Delegating pattern In software engineering, the delegation pattern is an object-oriented design pattern that allows…
Technology has emerged a lot in the last decade, and now we have artificial intelligence;…
Managing a database is becoming increasingly complex now due to the vast amount of data…
Overview In this article, we will explore Spring Scheduler how we could use it by…