{"id":108468,"date":"2021-01-21T07:00:00","date_gmt":"2021-01-21T05:00:00","guid":{"rendered":"https:\/\/www.javacodegeeks.com\/?p=108468"},"modified":"2021-01-19T15:58:16","modified_gmt":"2021-01-19T13:58:16","slug":"spring-injection-types","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/2021\/01\/spring-injection-types.html","title":{"rendered":"Spring Injection Types"},"content":{"rendered":"<p>Spring supports three types of dependency injections:<\/p>\n<h2><a href=\"#constructor-injection\" name=\"constructor-injection\"> <\/a> Constructor injection<\/h2>\n<pre class=\"brush:java\">@Component\npublic class SecondBeanImpl implements SecondBean {\n\n    private FirstBean firstBean;\n\n    @Autowired\n    public SecondBeanImpl(FirstBean firstBean) {\n        this.firstBean = firstBean;\n    }\n}<\/pre>\n<p>That is similar to:<\/p>\n<pre class=\"brush:java\">FirstBean firstBean = new FirstBeanImpl();\nSecondBean secondBean = new SecondBeanImpl(firstBean);<\/pre>\n<p>This type of dependency injection instantiates and initializes the object.<br \/>\nIn this approach, beans are immutable and dependencies are not null. However, if you define many parameters in the constructor, your code is not clean.<br \/>\nFrom Spring 4.3 the @Autowired annotation is not required if the class has a single constructor.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<h2><a href=\"#setter-injection\" name=\"setter-injection\"> <\/a> Setter injection<\/h2>\n<pre class=\"brush:java\">@Component\npublic class SecondBeanImpl implements SecondBean {\n\n    private FirstBean firstBean;\n\n    @Autowired\n    public setFirstBean(FirstBean firstBean) {\n        this.firstBean = firstBean;\n    }\n}<\/pre>\n<p>That is similar to:<\/p>\n<pre class=\"brush:java\">FirstBean firstBean = new FirstBeanImpl();\nSecondBean secondBean = new SecondBeanImpl();\nsecondBean.setFirstBean(firstBean);<\/pre>\n<p>In this approach, beans are not immutable (the setter could be called later), and not mandatory dependencies can lead to NullPointerExceptions.<\/p>\n<h2><a href=\"#field-injection\" name=\"field-injection\"> <\/a> Field injection<\/h2>\n<pre class=\"brush:java\">@Component\npublic class SecondBeanImpl implements SecondBean {\n\n    @Autowired\n    private FirstBean firstBean;\n}<\/pre>\n<p>This approach may look cleaner but hides the dependencies and makes testing difficult. While constructor and setter injections use proxies, field injection uses reflection which could affect the performance. Could be used in test classes.<\/p>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td>Published on Java Code Geeks with permission by Eidher Julian, partner at our <a href=\"\/\/www.javacodegeeks.com\/join-us\/jcg\/\" target=\"_blank\" rel=\"noopener\">JCG program<\/a>. See the original article here: <a href=\"https:\/\/dev.to\/eidher\/spring-injection-types-c6d\" target=\"_blank\" rel=\"noopener\">Spring Injection Types<\/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>Spring supports three types of dependency injections: Constructor injection @Component public class SecondBeanImpl implements SecondBean { private FirstBean firstBean; @Autowired public SecondBeanImpl(FirstBean firstBean) { this.firstBean = firstBean; } } That is similar to: FirstBean firstBean = new FirstBeanImpl(); SecondBean secondBean = new SecondBeanImpl(firstBean); This type of dependency injection instantiates and initializes the object. In this &hellip;<\/p>\n","protected":false},"author":119255,"featured_media":240,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[30],"class_list":["post-108468","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-spring"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Spring Injection Types - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"Spring supports three types of dependency injections: Constructor injection @Component public class SecondBeanImpl implements SecondBean { private\" \/>\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\/2021\/01\/spring-injection-types.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spring Injection Types - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"Spring supports three types of dependency injections: Constructor injection @Component public class SecondBeanImpl implements SecondBean { private\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/2021\/01\/spring-injection-types.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=\"2021-01-21T05:00:00+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=\"Eidher Julian\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/eidherjulian\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Eidher Julian\" \/>\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\\\/2021\\\/01\\\/spring-injection-types.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2021\\\/01\\\/spring-injection-types.html\"},\"author\":{\"name\":\"Eidher Julian\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/dfd30acd746faf5c0d5be0a252f9fb38\"},\"headline\":\"Spring Injection Types\",\"datePublished\":\"2021-01-21T05:00:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2021\\\/01\\\/spring-injection-types.html\"},\"wordCount\":163,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2021\\\/01\\\/spring-injection-types.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"keywords\":[\"Spring\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2021\\\/01\\\/spring-injection-types.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2021\\\/01\\\/spring-injection-types.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2021\\\/01\\\/spring-injection-types.html\",\"name\":\"Spring Injection Types - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2021\\\/01\\\/spring-injection-types.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2021\\\/01\\\/spring-injection-types.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"datePublished\":\"2021-01-21T05:00:00+00:00\",\"description\":\"Spring supports three types of dependency injections: Constructor injection @Component public class SecondBeanImpl implements SecondBean { private\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2021\\\/01\\\/spring-injection-types.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/2021\\\/01\\\/spring-injection-types.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/2021\\\/01\\\/spring-injection-types.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\\\/2021\\\/01\\\/spring-injection-types.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 Injection Types\"}]},{\"@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\\\/dfd30acd746faf5c0d5be0a252f9fb38\",\"name\":\"Eidher Julian\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/62651f68ae9ffeee19352aa0321243c3db467db408dc38f22c9caabf99f346a8?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/62651f68ae9ffeee19352aa0321243c3db467db408dc38f22c9caabf99f346a8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/62651f68ae9ffeee19352aa0321243c3db467db408dc38f22c9caabf99f346a8?s=96&d=mm&r=g\",\"caption\":\"Eidher Julian\"},\"description\":\"Eidher Julian is a Systems Engineer and Software Engineering Specialist with 13+ years of experience as a Java developer. He is an Oracle Certified Associate and SOA Certified Architect.\",\"sameAs\":[\"https:\\\/\\\/dev.to\\\/eidher\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/julian-cadavid\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/eidherjulian\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/eidher-julian\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Spring Injection Types - Java Code Geeks","description":"Spring supports three types of dependency injections: Constructor injection @Component public class SecondBeanImpl implements SecondBean { private","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\/2021\/01\/spring-injection-types.html","og_locale":"en_US","og_type":"article","og_title":"Spring Injection Types - Java Code Geeks","og_description":"Spring supports three types of dependency injections: Constructor injection @Component public class SecondBeanImpl implements SecondBean { private","og_url":"https:\/\/www.javacodegeeks.com\/2021\/01\/spring-injection-types.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_published_time":"2021-01-21T05:00:00+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":"Eidher Julian","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/eidherjulian","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Eidher Julian","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/2021\/01\/spring-injection-types.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/2021\/01\/spring-injection-types.html"},"author":{"name":"Eidher Julian","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/dfd30acd746faf5c0d5be0a252f9fb38"},"headline":"Spring Injection Types","datePublished":"2021-01-21T05:00:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2021\/01\/spring-injection-types.html"},"wordCount":163,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2021\/01\/spring-injection-types.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","keywords":["Spring"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/2021\/01\/spring-injection-types.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/2021\/01\/spring-injection-types.html","url":"https:\/\/www.javacodegeeks.com\/2021\/01\/spring-injection-types.html","name":"Spring Injection Types - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/2021\/01\/spring-injection-types.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/2021\/01\/spring-injection-types.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","datePublished":"2021-01-21T05:00:00+00:00","description":"Spring supports three types of dependency injections: Constructor injection @Component public class SecondBeanImpl implements SecondBean { private","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/2021\/01\/spring-injection-types.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/2021\/01\/spring-injection-types.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/2021\/01\/spring-injection-types.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\/2021\/01\/spring-injection-types.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 Injection Types"}]},{"@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\/dfd30acd746faf5c0d5be0a252f9fb38","name":"Eidher Julian","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/62651f68ae9ffeee19352aa0321243c3db467db408dc38f22c9caabf99f346a8?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/62651f68ae9ffeee19352aa0321243c3db467db408dc38f22c9caabf99f346a8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/62651f68ae9ffeee19352aa0321243c3db467db408dc38f22c9caabf99f346a8?s=96&d=mm&r=g","caption":"Eidher Julian"},"description":"Eidher Julian is a Systems Engineer and Software Engineering Specialist with 13+ years of experience as a Java developer. He is an Oracle Certified Associate and SOA Certified Architect.","sameAs":["https:\/\/dev.to\/eidher","https:\/\/www.linkedin.com\/in\/julian-cadavid\/","https:\/\/x.com\/https:\/\/twitter.com\/eidherjulian"],"url":"https:\/\/www.javacodegeeks.com\/author\/eidher-julian"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/108468","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\/119255"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=108468"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/108468\/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=108468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=108468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=108468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}