{"id":70465,"date":"2017-11-13T19:00:44","date_gmt":"2017-11-13T17:00:44","guid":{"rendered":"https:\/\/www.javacodegeeks.com\/?p=70465"},"modified":"2017-11-13T10:34:16","modified_gmt":"2017-11-13T08:34:16","slug":"spring-boot-web-application-gradle","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2017\/11\/spring-boot-web-application-gradle.html","title":{"rendered":"Spring Boot web application with Gradle"},"content":{"rendered":"<h2>1. Introduction<\/h2>\n<p>Before we move on to create our demo Spring Boot web application with Gradle, I assume we all are ready with the <a href=\"http:\/\/www.jcombat.com\/tips-and-tricks\/guide-gradle-setup\" target=\"_blank\" rel=\"noopener\">Gradle setup<\/a>.<\/p>\n<ul>\n<li><a href=\"http:\/\/www.jcombat.com\/tips-and-tricks\/guide-gradle-setup\" target=\"_blank\" rel=\"noopener\">Guide to Gradle Setup<\/a><\/li>\n<li><a href=\"https:\/\/gradle.org\/\" target=\"_blank\" rel=\"noopener\">Gradle Official Website<\/a><\/li>\n<\/ul>\n<h2>2. Creating Demo Application<\/h2>\n<p>Now that we ready with the plugin installed, create a new Gradle project as shown below \u2013<\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/1-1.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-70476\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/1-1.png\" alt=\"\" width=\"522\" height=\"498\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/1-1.png 522w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/1-1-300x286.png 300w\" sizes=\"(max-width: 522px) 100vw, 522px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Clicking on <strong>Next<\/strong>, specify the project details as mentioned below \u2013<\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/2-1.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-70477\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/2-1.png\" alt=\"\" width=\"631\" height=\"613\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/2-1.png 631w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/2-1-300x291.png 300w\" sizes=\"(max-width: 631px) 100vw, 631px\" \/><\/a><\/p>\n<p>Click <strong>Finish<\/strong> and we are done with the initial project creation \u2013<\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/3.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-70478\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/3.png\" alt=\"\" width=\"291\" height=\"363\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/3.png 291w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/3-240x300.png 240w\" sizes=\"(max-width: 291px) 100vw, 291px\" \/><\/a><\/p>\n<p>Like we have <strong>pom.xml with Maven<\/strong>, we have <strong>build.gradle with Gradle<\/strong>. Lets make the required changes to it by adding the Spring Boot dependencies \u2013<\/p>\n<pre class=\"brush:xml\">buildscript {\r\n\text {\r\n\t\tspringBootVersion = '1.4.3.RELEASE'\r\n\t}\r\n\trepositories {\r\n\t\tmavenCentral()\r\n\t}\r\n\tdependencies {\r\n\t\tclasspath(\"org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}\")\r\n\t}\r\n}\r\n \r\napply plugin: 'java'\r\napply plugin: 'eclipse'\r\napply plugin: 'org.springframework.boot'\r\n \r\njar {\r\n\tbaseName = 'boot-gradle'\r\n\tversion = '0.0.1-SNAPSHOT'\r\n}\r\n \r\nrepositories {\r\n\tmavenCentral()\r\n}\r\n \r\nbootRepackage {\r\n    enabled = true\r\n}\r\n \r\ndependencies {\r\n\tcompile('org.springframework.boot:spring-boot-starter',\r\n\t'org.springframework.boot:spring-boot-starter-web',\r\n\t'org.springframework.boot:spring-boot-starter-thymeleaf')\r\n}<\/pre>\n<p>Lets now create the\u00a0<strong>SpringBootApplication class<\/strong> containing the main method \u2013<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/4.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-70479\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/4.png\" alt=\"\" width=\"540\" height=\"635\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/4.png 540w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/4-255x300.png 255w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/><\/a><\/p>\n<p><em>SpringBootApplication.java<\/em><\/p>\n<pre class=\"brush:java\">package com.jcombat;\r\n \r\nimport org.springframework.boot.SpringApplication;\r\n \r\n@org.springframework.boot.autoconfigure.SpringBootApplication\r\npublic class SpringBootApplication {\r\n \r\n\tpublic static void main(String[] args) {\r\n\t\tSpringApplication.run(SpringBootApplication.class, args);\r\n\t}\r\n \r\n}<\/pre>\n<p>Similarly, let\u2019s have a <strong>Spring controller class<\/strong> created as well \u2013<\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/5.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-70480\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/5.png\" alt=\"\" width=\"538\" height=\"637\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/5.png 538w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/5-253x300.png 253w\" sizes=\"(max-width: 538px) 100vw, 538px\" \/><\/a><\/p>\n<p><em>DemoController.java<\/em><\/p>\n<pre class=\"brush:java\">package com.jcombat.controller;\r\n \r\nimport java.util.Map;\r\n \r\nimport org.springframework.stereotype.Controller;\r\nimport org.springframework.web.bind.annotation.RequestMapping;\r\n \r\n@Controller\r\npublic class DemoController {\r\n \r\n\t@RequestMapping(\"\/\")\r\n\tpublic String welcome(Map&lt;String, Object&gt; model) {\r\n\t\treturn \"welcome\";\r\n\t}\r\n}<\/pre>\n<p>We now need to add welcome.html in the Spring Boot resource location. Note that the resource folder might not exist while creating the Gradle project, so in my case I will have to create one explicitly.<\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/6.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-70481\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/6.png\" alt=\"\" width=\"799\" height=\"555\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/6.png 799w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/6-300x208.png 300w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/6-768x533.png 768w\" sizes=\"(max-width: 799px) 100vw, 799px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/8.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-70482\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/8.png\" alt=\"\" width=\"416\" height=\"487\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/8.png 416w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/8-256x300.png 256w\" sizes=\"(max-width: 416px) 100vw, 416px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/7.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-70483\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/7.png\" alt=\"\" width=\"800\" height=\"554\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/7.png 800w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/7-300x208.png 300w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/7-768x532.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<p>Project structure now should look like \u2013<\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/9.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-70484\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/9.png\" alt=\"\" width=\"275\" height=\"272\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/9.png 275w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/9-70x70.png 70w\" sizes=\"(max-width: 275px) 100vw, 275px\" \/><\/a><\/p>\n<p>Now create \u2018template\u2019 folder inside the <strong>src\/main\/resource<\/strong> project directory, and create the <strong>welcome.html<\/strong> file inside it. Refer to the below snapshot \u2013<\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/10.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-70485\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/10.png\" alt=\"\" width=\"272\" height=\"306\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/10.png 272w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/10-267x300.png 267w\" sizes=\"(max-width: 272px) 100vw, 272px\" \/><\/a><\/p>\n<p>Next, Right-click on the project, go to \u2018Gradle\u2019 and click on \u2018Refresh Gradle project\u2019.<\/p>\n<p>This is it.<\/p>\n<h2>3. Running the application<\/h2>\n<p>Right-click on the project and Run the application as <em>Spring Boot App<\/em> \u2013<\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/11.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-70486\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/11.png\" alt=\"\" width=\"620\" height=\"99\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/11.png 620w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/11\/11-300x48.png 300w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<h2>4. Download the source code<\/h2>\n<p><a href=\"https:\/\/github.com\/abhi435\/SpringBootAppWithGradle\" target=\"_blank\" rel=\"noopener\">Download the source code<\/a><\/p>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td>Published on Java Code Geeks with permission by Abhimanyu Prasad, partner at our <a href=\"http:\/\/www.javacodegeeks.com\/join-us\/jcg\/\" target=\"_blank\" rel=\"noopener\">JCG program<\/a>. See the original article here: <a href=\"http:\/\/www.jcombat.com\/spring\/spring-boot-web-application-with-gradle\" target=\"_blank\" rel=\"noopener\">Spring Boot web application with Gradle<\/a><\/p>\n<p>Opinions expressed by Java Code Geeks contributors are their own.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>1. Introduction Before we move on to create our demo Spring Boot web application with Gradle, I assume we all are ready with the Gradle setup. Guide to Gradle Setup Gradle Official Website 2. Creating Demo Application Now that we ready with the plugin installed, create a new Gradle project as shown below \u2013 &nbsp; &hellip;<\/p>\n","protected":false},"author":958,"featured_media":129,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[484,854],"class_list":["post-70465","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-gradle","tag-spring-boot"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Spring Boot web application with Gradle - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"1. Introduction Before we move on to create our demo Spring Boot web application with Gradle, I assume we all are ready with the Gradle setup. Guide to\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/2017\/11\/spring-boot-web-application-gradle.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spring Boot web application with Gradle - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"1. Introduction Before we move on to create our demo Spring Boot web application with Gradle, I assume we all are ready with the Gradle setup. Guide to\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2017\/11\/spring-boot-web-application-gradle.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/abhi435\" \/>\n<meta property=\"article:published_time\" content=\"2017-11-13T17:00:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/gradle-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Abhimanyu Prasad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Abhimanyu Prasad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/11\\\/spring-boot-web-application-gradle.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/11\\\/spring-boot-web-application-gradle.html\"},\"author\":{\"name\":\"Abhimanyu Prasad\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/8084cf3db3cc9b2c21fc2c04307d47c7\"},\"headline\":\"Spring Boot web application with Gradle\",\"datePublished\":\"2017-11-13T17:00:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/11\\\/spring-boot-web-application-gradle.html\"},\"wordCount\":274,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/11\\\/spring-boot-web-application-gradle.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/gradle-logo.jpg\",\"keywords\":[\"Gradle\",\"Spring Boot\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/11\\\/spring-boot-web-application-gradle.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/11\\\/spring-boot-web-application-gradle.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/11\\\/spring-boot-web-application-gradle.html\",\"name\":\"Spring Boot web application with Gradle - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/11\\\/spring-boot-web-application-gradle.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/11\\\/spring-boot-web-application-gradle.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/gradle-logo.jpg\",\"datePublished\":\"2017-11-13T17:00:44+00:00\",\"description\":\"1. Introduction Before we move on to create our demo Spring Boot web application with Gradle, I assume we all are ready with the Gradle setup. Guide to\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/11\\\/spring-boot-web-application-gradle.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/11\\\/spring-boot-web-application-gradle.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/11\\\/spring-boot-web-application-gradle.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/gradle-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/gradle-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/11\\\/spring-boot-web-application-gradle.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Spring Boot web application with Gradle\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/8084cf3db3cc9b2c21fc2c04307d47c7\",\"name\":\"Abhimanyu Prasad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8197b6658b8d42a7c85117f4aabe67206651698dbc306809655610f6af906610?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8197b6658b8d42a7c85117f4aabe67206651698dbc306809655610f6af906610?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8197b6658b8d42a7c85117f4aabe67206651698dbc306809655610f6af906610?s=96&d=mm&r=g\",\"caption\":\"Abhimanyu Prasad\"},\"description\":\"Abhimanyu is a passionate tech blogger and senior programmer, who has an extensive end-to-end development experience with wide range of technologies. He is the founder and administrator at jCombat.\",\"sameAs\":[\"http:\\\/\\\/www.jcombat.com\",\"https:\\\/\\\/www.facebook.com\\\/abhi435\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/abhimanyu-prasad\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Spring Boot web application with Gradle - Java Code Geeks","description":"1. Introduction Before we move on to create our demo Spring Boot web application with Gradle, I assume we all are ready with the Gradle setup. Guide to","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/2017\/11\/spring-boot-web-application-gradle.html","og_locale":"en_US","og_type":"article","og_title":"Spring Boot web application with Gradle - Java Code Geeks","og_description":"1. Introduction Before we move on to create our demo Spring Boot web application with Gradle, I assume we all are ready with the Gradle setup. Guide to","og_url":"https:\/\/www.javacodegeeks.com\/2017\/11\/spring-boot-web-application-gradle.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_author":"https:\/\/www.facebook.com\/abhi435","article_published_time":"2017-11-13T17:00:44+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/gradle-logo.jpg","type":"image\/jpeg"}],"author":"Abhimanyu Prasad","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Abhimanyu Prasad","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2017\/11\/spring-boot-web-application-gradle.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2017\/11\/spring-boot-web-application-gradle.html"},"author":{"name":"Abhimanyu Prasad","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/8084cf3db3cc9b2c21fc2c04307d47c7"},"headline":"Spring Boot web application with Gradle","datePublished":"2017-11-13T17:00:44+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2017\/11\/spring-boot-web-application-gradle.html"},"wordCount":274,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2017\/11\/spring-boot-web-application-gradle.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/gradle-logo.jpg","keywords":["Gradle","Spring Boot"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2017\/11\/spring-boot-web-application-gradle.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2017\/11\/spring-boot-web-application-gradle.html","url":"https:\/\/www.javacodegeeks.com\/2017\/11\/spring-boot-web-application-gradle.html","name":"Spring Boot web application with Gradle - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2017\/11\/spring-boot-web-application-gradle.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2017\/11\/spring-boot-web-application-gradle.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/gradle-logo.jpg","datePublished":"2017-11-13T17:00:44+00:00","description":"1. Introduction Before we move on to create our demo Spring Boot web application with Gradle, I assume we all are ready with the Gradle setup. Guide to","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2017\/11\/spring-boot-web-application-gradle.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2017\/11\/spring-boot-web-application-gradle.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2017\/11\/spring-boot-web-application-gradle.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/gradle-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/gradle-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2017\/11\/spring-boot-web-application-gradle.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"Spring Boot web application with Gradle"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/8084cf3db3cc9b2c21fc2c04307d47c7","name":"Abhimanyu Prasad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/8197b6658b8d42a7c85117f4aabe67206651698dbc306809655610f6af906610?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/8197b6658b8d42a7c85117f4aabe67206651698dbc306809655610f6af906610?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8197b6658b8d42a7c85117f4aabe67206651698dbc306809655610f6af906610?s=96&d=mm&r=g","caption":"Abhimanyu Prasad"},"description":"Abhimanyu is a passionate tech blogger and senior programmer, who has an extensive end-to-end development experience with wide range of technologies. He is the founder and administrator at jCombat.","sameAs":["http:\/\/www.jcombat.com","https:\/\/www.facebook.com\/abhi435"],"url":"https:\/\/www.javacodegeeks.com\/author\/abhimanyu-prasad"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/70465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/958"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=70465"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/70465\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/129"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=70465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=70465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=70465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}