{"id":59623,"date":"2016-08-22T07:00:16","date_gmt":"2016-08-22T04:00:16","guid":{"rendered":"https:\/\/www.javacodegeeks.com\/?p=59623"},"modified":"2016-08-21T22:14:04","modified_gmt":"2016-08-21T19:14:04","slug":"deploy-spring-boot-application-amazon-elastic-beanstalk","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2016\/08\/deploy-spring-boot-application-amazon-elastic-beanstalk.html","title":{"rendered":"Deploy Spring Boot Application on Amazon Elastic Beanstalk"},"content":{"rendered":"<p>In this blog, we are going to see how to deploy a Spring boot application on Amazon ElasticBeanstalk.<\/p>\n<p>Amazon ElasticBeanstalk has a preconfigured Java environment, which could be used to deploy a Spring Boot JAR which has the servlet container inside it.<\/p>\n<p>For our example, we will use maven as the build tool here.<\/p>\n<p>Step 1 : The first step would be package the application as JAR to be deployed.<br \/>\n\u2013 In pom , we have to make sure that the \u201cpackaging\u201d attribute is set to \u201cjar\u201d<\/p>\n<pre class=\"brush:xml\">&lt;groupId&gt;com.anirudh&lt;\/groupId&gt;\r\n    &lt;artifactId&gt;practice&lt;\/artifactId&gt;\r\n    &lt;version&gt;0.0.1-SNAPSHOT&lt;\/version&gt;\r\n    &lt;packaging&gt;jar&lt;\/packaging&gt;\r\n    &lt;name&gt;Practice&lt;\/name&gt;<\/pre>\n<p>\u2013 Now, run the maven command to package the application and produce a JAR.<\/p>\n<pre class=\"brush:java\">Anirudhs-MacBook-Pro:~ anirudh$ mvn clean package<\/pre>\n<p>This will package a JAR into the target folder, something like this :<\/p>\n<pre class=\"brush:java\">practice-1.0-SNAPSHOT<\/pre>\n<p>Now, we need to create an environment in ElasticBeanstalk.<\/p>\n<h2>Step 2:<\/h2>\n<p>Sign into your AWS account and go to Elastic Beanstalk.\u00a0Create a new environment, give name for your application, select appropriate instance type.\u00a0If you are just testing the this, make sure you select t2.micro instance, as it is under Free Tier.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<p>Once the Java environment is created, you need to upload the \u201cJAR\u201d created to the Elastic Beanstalk, if you are using Web Interface you can directly select the file and upload, else if you are using CLI, you can push it to ElasticBeanstalk using its CLI module.\u00a0Once you upload it will take few minutes to deploy your application.<\/p>\n<p>The application would not be available right now as it uses Nginx reverse proxy, which by default talks to port 5000. So if you try and hit your application now, you will get a 502 error. To fix that you need to define the property \u201cPORT\u201d<\/p>\n<h2>Step 3: Define the \u201cPORT\u201d<\/h2>\n<p>For the application to work properly you need to add a tag with the name :\u00a0\u201cPORT\u201d and value most of the cases, if you are using all defaults, it would be 8080.<\/p>\n<h2>Step 4: Open the port 8080<\/h2>\n<p>Now we need to open the port 8080 for the inbound traffic for the EC2 instance.\u00a0Go to the EC2 instance and find the security group which is been used for the instance.\u00a0Edit the Secuirty Groups, add inbound Rules, and add the following rule :<\/p>\n<p><a href=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/08\/screen-shot-2016-08-21-at-11-43-34-pm.png\"><img decoding=\"async\" class=\"aligncenter wp-image-59629\" src=\"http:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/08\/screen-shot-2016-08-21-at-11-43-34-pm.png\" alt=\"screen-shot-2016-08-21-at-11-43-34-pm\" width=\"860\" height=\"190\" srcset=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/08\/screen-shot-2016-08-21-at-11-43-34-pm.png 1107w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/08\/screen-shot-2016-08-21-at-11-43-34-pm-300x66.png 300w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/08\/screen-shot-2016-08-21-at-11-43-34-pm-768x170.png 768w, https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2016\/08\/screen-shot-2016-08-21-at-11-43-34-pm-1024x227.png 1024w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a><\/p>\n<p>Now your port 8080 is open to accept inbound connections. Now if you click on the link of your application, you should be able to access your application, if not try adding port 8080 to the URL (in case you are not using ELB)<\/p>\n<h2>Optional Step 5: Add Database<\/h2>\n<p>If your application is using a DB, add an RDS instance to your ElasticBeanstalk application and launch it.<br \/>\nNote down the access URL, username, password, etc. it would be something like<\/p>\n<pre class=\"brush:java\">Endpoint: aaxxxxxxj.xxxxxxxmcn.ap-south-1.rds.amazonaws.com:3306<\/pre>\n<p>Go to your application.properties file and put all these 4 parameters : ( this example uses MySQL)<\/p>\n<pre class=\"brush:java\">spring.datasource.url = jdbc:mysql:\/\/aaxxxxxxj.xxxxxxxmcn.ap-south-1.rds.amazonaws.com:3306\/practice\r\nspring.datasource.username = xxxxx\r\nspring.datasource.password = xxxxxx\r\nspring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect<\/pre>\n<p>Now, again package your JAR, and upload it, if you have set \u201cspring.jpa.hibernate.ddl-auto\u201d to create\/update.\u00a0You would be able to create the DB tables, provided you have a schema already made. You can use schema.sql to create the schema in Spring boot.<\/p>\n<p>Hope, this helps getting a spring boot application, deployed to Amazon Elastic bean stalk.<\/p>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td><span class=\"reference\">Reference: <\/span><\/td>\n<td><a href=\"https:\/\/anirudhbhatnagar.com\/2016\/08\/21\/deploy-spring-boot-application-on-amazon-elastic-beanstalk\/\">Deploy Spring Boot Application on Amazon Elastic Beanstalk<\/a> from our <a href=\"http:\/\/www.javacodegeeks.com\/join-us\/jcg\/\">JCG partner<\/a> Anirudh Bhatnagar at the <a href=\"http:\/\/anirudhbhatnagar.com\/\">anirudh bhatnagar<\/a> blog.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, we are going to see how to deploy a Spring boot application on Amazon ElasticBeanstalk. Amazon ElasticBeanstalk has a preconfigured Java environment, which could be used to deploy a Spring Boot JAR which has the servlet container inside it. For our example, we will use maven as the build tool here. Step &hellip;<\/p>\n","protected":false},"author":503,"featured_media":240,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[30,854],"class_list":["post-59623","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-spring","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>Deploy Spring Boot Application on Amazon Elastic Beanstalk - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"In this blog, we are going to see how to deploy a Spring boot application on Amazon ElasticBeanstalk. Amazon ElasticBeanstalk has a preconfigured Java\" \/>\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\/2016\/08\/deploy-spring-boot-application-amazon-elastic-beanstalk.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Deploy Spring Boot Application on Amazon Elastic Beanstalk - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"In this blog, we are going to see how to deploy a Spring boot application on Amazon ElasticBeanstalk. Amazon ElasticBeanstalk has a preconfigured Java\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2016\/08\/deploy-spring-boot-application-amazon-elastic-beanstalk.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=\"2016-08-22T04:00:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-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=\"Anirudh Bhatnagar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/anirudh_bh\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Anirudh Bhatnagar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/08\\\/deploy-spring-boot-application-amazon-elastic-beanstalk.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/08\\\/deploy-spring-boot-application-amazon-elastic-beanstalk.html\"},\"author\":{\"name\":\"Anirudh Bhatnagar\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/12f4f6d257ae9642dcccf1e58bab8346\"},\"headline\":\"Deploy Spring Boot Application on Amazon Elastic Beanstalk\",\"datePublished\":\"2016-08-22T04:00:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/08\\\/deploy-spring-boot-application-amazon-elastic-beanstalk.html\"},\"wordCount\":528,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/08\\\/deploy-spring-boot-application-amazon-elastic-beanstalk.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"keywords\":[\"Spring\",\"Spring Boot\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/08\\\/deploy-spring-boot-application-amazon-elastic-beanstalk.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/08\\\/deploy-spring-boot-application-amazon-elastic-beanstalk.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/08\\\/deploy-spring-boot-application-amazon-elastic-beanstalk.html\",\"name\":\"Deploy Spring Boot Application on Amazon Elastic Beanstalk - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/08\\\/deploy-spring-boot-application-amazon-elastic-beanstalk.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/08\\\/deploy-spring-boot-application-amazon-elastic-beanstalk.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"datePublished\":\"2016-08-22T04:00:16+00:00\",\"description\":\"In this blog, we are going to see how to deploy a Spring boot application on Amazon ElasticBeanstalk. Amazon ElasticBeanstalk has a preconfigured Java\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/08\\\/deploy-spring-boot-application-amazon-elastic-beanstalk.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/08\\\/deploy-spring-boot-application-amazon-elastic-beanstalk.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/08\\\/deploy-spring-boot-application-amazon-elastic-beanstalk.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"width\":150,\"height\":150,\"caption\":\"spring-interview-questions-answers\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2016\\\/08\\\/deploy-spring-boot-application-amazon-elastic-beanstalk.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\":\"Deploy Spring Boot Application on Amazon Elastic Beanstalk\"}]},{\"@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\\\/12f4f6d257ae9642dcccf1e58bab8346\",\"name\":\"Anirudh Bhatnagar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b90deb868665958c0c6608c42166b0318f8beb8743e356e8073f24723b0f28aa?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b90deb868665958c0c6608c42166b0318f8beb8743e356e8073f24723b0f28aa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/b90deb868665958c0c6608c42166b0318f8beb8743e356e8073f24723b0f28aa?s=96&d=mm&r=g\",\"caption\":\"Anirudh Bhatnagar\"},\"description\":\"Anirudh is a Java programmer with extensive experience in building Java\\\/J2EE applications. He has always been fascinated by the new technologies and emerging trends in software development. He has been involved in propagating these changes and new technologies in his projects. He is an avid blogger and agile enthusiast who believes in writing clean and well tested code.\",\"sameAs\":[\"http:\\\/\\\/anirudhbhatnagar.com\\\/\",\"http:\\\/\\\/www.linkedin.com\\\/in\\\/anirudhbhatnagar\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/anirudh_bh\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/anirudh-bhatnagar\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Deploy Spring Boot Application on Amazon Elastic Beanstalk - Java Code Geeks","description":"In this blog, we are going to see how to deploy a Spring boot application on Amazon ElasticBeanstalk. Amazon ElasticBeanstalk has a preconfigured Java","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\/2016\/08\/deploy-spring-boot-application-amazon-elastic-beanstalk.html","og_locale":"en_US","og_type":"article","og_title":"Deploy Spring Boot Application on Amazon Elastic Beanstalk - Java Code Geeks","og_description":"In this blog, we are going to see how to deploy a Spring boot application on Amazon ElasticBeanstalk. Amazon ElasticBeanstalk has a preconfigured Java","og_url":"https:\/\/www.javacodegeeks.com\/2016\/08\/deploy-spring-boot-application-amazon-elastic-beanstalk.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2016-08-22T04:00:16+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","type":"image\/jpeg"}],"author":"Anirudh Bhatnagar","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/anirudh_bh","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Anirudh Bhatnagar","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2016\/08\/deploy-spring-boot-application-amazon-elastic-beanstalk.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/08\/deploy-spring-boot-application-amazon-elastic-beanstalk.html"},"author":{"name":"Anirudh Bhatnagar","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/12f4f6d257ae9642dcccf1e58bab8346"},"headline":"Deploy Spring Boot Application on Amazon Elastic Beanstalk","datePublished":"2016-08-22T04:00:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/08\/deploy-spring-boot-application-amazon-elastic-beanstalk.html"},"wordCount":528,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/08\/deploy-spring-boot-application-amazon-elastic-beanstalk.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","keywords":["Spring","Spring Boot"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2016\/08\/deploy-spring-boot-application-amazon-elastic-beanstalk.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2016\/08\/deploy-spring-boot-application-amazon-elastic-beanstalk.html","url":"https:\/\/www.javacodegeeks.com\/2016\/08\/deploy-spring-boot-application-amazon-elastic-beanstalk.html","name":"Deploy Spring Boot Application on Amazon Elastic Beanstalk - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/08\/deploy-spring-boot-application-amazon-elastic-beanstalk.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/08\/deploy-spring-boot-application-amazon-elastic-beanstalk.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","datePublished":"2016-08-22T04:00:16+00:00","description":"In this blog, we are going to see how to deploy a Spring boot application on Amazon ElasticBeanstalk. Amazon ElasticBeanstalk has a preconfigured Java","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2016\/08\/deploy-spring-boot-application-amazon-elastic-beanstalk.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2016\/08\/deploy-spring-boot-application-amazon-elastic-beanstalk.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2016\/08\/deploy-spring-boot-application-amazon-elastic-beanstalk.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","width":150,"height":150,"caption":"spring-interview-questions-answers"},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/2016\/08\/deploy-spring-boot-application-amazon-elastic-beanstalk.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":"Deploy Spring Boot Application on Amazon Elastic Beanstalk"}]},{"@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\/12f4f6d257ae9642dcccf1e58bab8346","name":"Anirudh Bhatnagar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/b90deb868665958c0c6608c42166b0318f8beb8743e356e8073f24723b0f28aa?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b90deb868665958c0c6608c42166b0318f8beb8743e356e8073f24723b0f28aa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b90deb868665958c0c6608c42166b0318f8beb8743e356e8073f24723b0f28aa?s=96&d=mm&r=g","caption":"Anirudh Bhatnagar"},"description":"Anirudh is a Java programmer with extensive experience in building Java\/J2EE applications. He has always been fascinated by the new technologies and emerging trends in software development. He has been involved in propagating these changes and new technologies in his projects. He is an avid blogger and agile enthusiast who believes in writing clean and well tested code.","sameAs":["http:\/\/anirudhbhatnagar.com\/","http:\/\/www.linkedin.com\/in\/anirudhbhatnagar\/","https:\/\/x.com\/https:\/\/twitter.com\/anirudh_bh"],"url":"https:\/\/www.javacodegeeks.com\/author\/anirudh-bhatnagar"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/59623","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\/503"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=59623"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/59623\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/240"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=59623"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=59623"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=59623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}