{"id":71449,"date":"2017-12-15T13:00:55","date_gmt":"2017-12-15T11:00:55","guid":{"rendered":"https:\/\/www.javacodegeeks.com\/?p=71449"},"modified":"2017-12-14T11:05:34","modified_gmt":"2017-12-14T09:05:34","slug":"spring-boot-windows-service-5-minutes","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2017\/12\/spring-boot-windows-service-5-minutes.html","title":{"rendered":"Spring Boot as a Windows Service in 5 minutes"},"content":{"rendered":"<p>I recently had to deploy a Spring Boot application as a windows service and am surprised how easy it was using <a href=\"https:\/\/github.com\/kohsuke\/winsw\">winsw<\/a>. I\u2019d previously written about using <a href=\"https:\/\/www.javabullets.com\/procrun-java-programs-as-windows-services\/\">procrun \u2013 Java Programs as Windows Services<\/a>, but winsw is much easier<\/p>\n<h2>Getting Started<\/h2>\n<p>There is a Section 59 of the Spring Boot documentation is about <a href=\"https:\/\/docs.spring.io\/spring-boot\/docs\/current\/reference\/html\/deployment-install.html#deployment-windows\">Installing Spring Boot applications<\/a>, and points you towards a <a href=\"https:\/\/github.com\/snicoll-scratches\/spring-boot-daemon\">github page<\/a>. This example uses that project for inspiration.<\/p>\n<h2>Project<\/h2>\n<p>Im going to use the Spring IO \u201cServing Web Content\u201d project as a starting point, so go to the web page and download the example from git or as a zip file.<\/p>\n<p><figure id=\"attachment_71491\" aria-describedby=\"caption-attachment-71491\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/12\/springboot-2.png\"><img decoding=\"async\" class=\"wp-image-71491 size-full\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/12\/springboot-2.png\" alt=\"\" width=\"300\" height=\"111\" \/><\/a><figcaption id=\"caption-attachment-71491\" class=\"wp-caption-text\">Running Spring Boot From Command Line<\/figcaption><\/figure><\/p>\n<p>We can then see our application running \u2013<\/p>\n<p><figure id=\"attachment_71492\" aria-describedby=\"caption-attachment-71492\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/12\/springmvc.png\"><img decoding=\"async\" class=\"wp-image-71492 size-full\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/12\/springmvc.png\" alt=\"\" width=\"300\" height=\"188\" \/><\/a><figcaption id=\"caption-attachment-71492\" class=\"wp-caption-text\">Spring MVC Example<\/figcaption><\/figure><div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<h2>Wrapping as a Windows Service<\/h2>\n<ul>\n<li>Download <a href=\"https:\/\/github.com\/kohsuke\/winsw\/releases\">winsw<\/a> from github \u2013 remember to choose the correct version depending on the version of .net you are running<\/li>\n<li>Create windowsservice directory and copy the exe to this location<\/li>\n<\/ul>\n<p><figure id=\"attachment_71493\" aria-describedby=\"caption-attachment-71493\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/12\/directory.png\"><img decoding=\"async\" class=\"wp-image-71493 size-full\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/12\/directory.png\" alt=\"\" width=\"300\" height=\"111\" \/><\/a><figcaption id=\"caption-attachment-71493\" class=\"wp-caption-text\">Windows Service Directory<\/figcaption><\/figure><\/p>\n<ul>\n<li>I renamed the <em>gs-serving-web-content-0.1.0.jar<\/em> to <em>gs-serving-web-content.jar<\/em><\/li>\n<li>Rename winsw exe from <em>WinSW.NET4.exe<\/em> to <em>gs-serving-web-content.exe<\/em><\/li>\n<li>Create a xml file named <em>gs-serving-web-content.<\/em>xml with the following content \u2013<\/li>\n<\/ul>\n<pre class=\"brush:xml\">&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;service&gt;\r\n &lt;id&gt;gs-serving-web-content&lt;\/id&gt;\r\n &lt;name&gt;gs-serving-web-content&lt;\/name&gt;\r\n &lt;description&gt;gs-serving-web-content Windows Service&lt;\/description&gt;\r\n &lt;executable&gt;java&lt;\/executable&gt;\r\n &lt;arguments&gt;-jar \"gs-serving-web-content.jar\"&lt;\/arguments&gt;\r\n &lt;logmode&gt;rotate&lt;\/logmode&gt;\r\n&lt;\/service&gt;<\/pre>\n<ul>\n<li>We can then install with gs-serving-web-content.exe install (you may need to run as administrator)<\/li>\n<\/ul>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/12\/install.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-71494\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/12\/install.png\" alt=\"\" width=\"300\" height=\"107\" \/><\/a><\/p>\n<ul>\n<li>We can then run this as a windows service \u2013<\/li>\n<\/ul>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/12\/gs-service.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-71495\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2017\/12\/gs-service.png\" alt=\"\" width=\"300\" height=\"50\" \/><\/a><\/p>\n<p>Windows Service<\/p>\n<ul>\n<li>To uninstall we run \u2013 gs-serving-web-content.exe uninstall<\/li>\n<\/ul>\n<h2>Alternatives<\/h2>\n<p>I looked at procrun as an alternative wrapper for Spring Boot \u2013 but couldnt get it to work. It probably can \u2013 but needs more time.<\/p>\n<h2>Conclusion<\/h2>\n<p>Im really impressed with winsw for installing Spring boot applications as windows services. Its really simple, and you can pass external application.properties files in through the xml configuration<\/p>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td>Published on Java Code Geeks with permission by Martin Farrell, 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=\"https:\/\/www.javabullets.com\/running-spring-boot-windows-service-5-minutes\/\" target=\"_blank\" rel=\"noopener\">Spring Boot as a Windows Service in 5 minutes<\/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>I recently had to deploy a Spring Boot application as a windows service and am surprised how easy it was using winsw. I\u2019d previously written about using procrun \u2013 Java Programs as Windows Services, but winsw is much easier Getting Started There is a Section 59 of the Spring Boot documentation is about Installing Spring &hellip;<\/p>\n","protected":false},"author":5562,"featured_media":112,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[854],"class_list":["post-71449","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","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 as a Windows Service in 5 minutes - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"I recently had to deploy a Spring Boot application as a windows service and am surprised how easy it was using winsw. I\u2019d previously written about using\" \/>\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\/12\/spring-boot-windows-service-5-minutes.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spring Boot as a Windows Service in 5 minutes - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"I recently had to deploy a Spring Boot application as a windows service and am surprised how easy it was using winsw. I\u2019d previously written about using\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2017\/12\/spring-boot-windows-service-5-minutes.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:published_time\" content=\"2017-12-15T11:00:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-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=\"Martin Farrell\" \/>\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=\"Martin Farrell\" \/>\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\\\/12\\\/spring-boot-windows-service-5-minutes.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/12\\\/spring-boot-windows-service-5-minutes.html\"},\"author\":{\"name\":\"Martin Farrell\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/0e817b754d2970d24f9f5232b4353e06\"},\"headline\":\"Spring Boot as a Windows Service in 5 minutes\",\"datePublished\":\"2017-12-15T11:00:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/12\\\/spring-boot-windows-service-5-minutes.html\"},\"wordCount\":340,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/12\\\/spring-boot-windows-service-5-minutes.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"keywords\":[\"Spring Boot\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/12\\\/spring-boot-windows-service-5-minutes.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/12\\\/spring-boot-windows-service-5-minutes.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/12\\\/spring-boot-windows-service-5-minutes.html\",\"name\":\"Spring Boot as a Windows Service in 5 minutes - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/12\\\/spring-boot-windows-service-5-minutes.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/12\\\/spring-boot-windows-service-5-minutes.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"datePublished\":\"2017-12-15T11:00:55+00:00\",\"description\":\"I recently had to deploy a Spring Boot application as a windows service and am surprised how easy it was using winsw. I\u2019d previously written about using\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/12\\\/spring-boot-windows-service-5-minutes.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/12\\\/spring-boot-windows-service-5-minutes.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/12\\\/spring-boot-windows-service-5-minutes.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/enterprise-java-logo.jpg\",\"width\":150,\"height\":150,\"caption\":\"java-interview-questions-answers\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2017\\\/12\\\/spring-boot-windows-service-5-minutes.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 as a Windows Service in 5 minutes\"}]},{\"@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\\\/0e817b754d2970d24f9f5232b4353e06\",\"name\":\"Martin Farrell\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0a1dc2247a0d7672d7918eddfbfaaa7d0d14b432a3aec5d926f00a16bf75ad70?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0a1dc2247a0d7672d7918eddfbfaaa7d0d14b432a3aec5d926f00a16bf75ad70?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0a1dc2247a0d7672d7918eddfbfaaa7d0d14b432a3aec5d926f00a16bf75ad70?s=96&d=mm&r=g\",\"caption\":\"Martin Farrell\"},\"description\":\"Martin is a Software Developer and Consultant specializing in Java and the Spring Framework. When not coding he spends time with his wife and two children, or cycling his bike.\",\"sameAs\":[\"http:\\\/\\\/www.javabullets.com\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/martin-farrell\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Spring Boot as a Windows Service in 5 minutes - Java Code Geeks","description":"I recently had to deploy a Spring Boot application as a windows service and am surprised how easy it was using winsw. I\u2019d previously written about using","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\/12\/spring-boot-windows-service-5-minutes.html","og_locale":"en_US","og_type":"article","og_title":"Spring Boot as a Windows Service in 5 minutes - Java Code Geeks","og_description":"I recently had to deploy a Spring Boot application as a windows service and am surprised how easy it was using winsw. I\u2019d previously written about using","og_url":"https:\/\/www.javacodegeeks.com\/2017\/12\/spring-boot-windows-service-5-minutes.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2017-12-15T11:00:55+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","type":"image\/jpeg"}],"author":"Martin Farrell","twitter_card":"summary_large_image","twitter_creator":"@javacodegeeks","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Martin Farrell","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2017\/12\/spring-boot-windows-service-5-minutes.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2017\/12\/spring-boot-windows-service-5-minutes.html"},"author":{"name":"Martin Farrell","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/0e817b754d2970d24f9f5232b4353e06"},"headline":"Spring Boot as a Windows Service in 5 minutes","datePublished":"2017-12-15T11:00:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2017\/12\/spring-boot-windows-service-5-minutes.html"},"wordCount":340,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2017\/12\/spring-boot-windows-service-5-minutes.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","keywords":["Spring Boot"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2017\/12\/spring-boot-windows-service-5-minutes.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2017\/12\/spring-boot-windows-service-5-minutes.html","url":"https:\/\/www.javacodegeeks.com\/2017\/12\/spring-boot-windows-service-5-minutes.html","name":"Spring Boot as a Windows Service in 5 minutes - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2017\/12\/spring-boot-windows-service-5-minutes.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2017\/12\/spring-boot-windows-service-5-minutes.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","datePublished":"2017-12-15T11:00:55+00:00","description":"I recently had to deploy a Spring Boot application as a windows service and am surprised how easy it was using winsw. I\u2019d previously written about using","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2017\/12\/spring-boot-windows-service-5-minutes.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2017\/12\/spring-boot-windows-service-5-minutes.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2017\/12\/spring-boot-windows-service-5-minutes.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/enterprise-java-logo.jpg","width":150,"height":150,"caption":"java-interview-questions-answers"},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2017\/12\/spring-boot-windows-service-5-minutes.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 as a Windows Service in 5 minutes"}]},{"@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\/0e817b754d2970d24f9f5232b4353e06","name":"Martin Farrell","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0a1dc2247a0d7672d7918eddfbfaaa7d0d14b432a3aec5d926f00a16bf75ad70?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0a1dc2247a0d7672d7918eddfbfaaa7d0d14b432a3aec5d926f00a16bf75ad70?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0a1dc2247a0d7672d7918eddfbfaaa7d0d14b432a3aec5d926f00a16bf75ad70?s=96&d=mm&r=g","caption":"Martin Farrell"},"description":"Martin is a Software Developer and Consultant specializing in Java and the Spring Framework. When not coding he spends time with his wife and two children, or cycling his bike.","sameAs":["http:\/\/www.javabullets.com"],"url":"https:\/\/www.javacodegeeks.com\/author\/martin-farrell"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/71449","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\/5562"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=71449"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/71449\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/112"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=71449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=71449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=71449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}