

{"id":20360,"date":"2018-07-07T04:00:49","date_gmt":"2018-07-07T04:00:49","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=20360"},"modified":"2018-09-15T12:27:21","modified_gmt":"2018-09-15T06:57:21","slug":"bean-definition-inheritance","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/bean-definition-inheritance\/","title":{"rendered":"Spring Bean Definition Inheritance &amp; Bean Definition Template"},"content":{"rendered":"<h2>1. Objective<\/h2>\n<p>This is the last article<a href=\"https:\/\/data-flair.training\/blogs\/spring-framework-features\/\"><strong> featuring the Spring<\/strong><\/a> Beans where you will be learning about the Spring Bean Definition Inheritance. You should know that a bean definition contains a lot of information about the constructor arguments, property values, and the<a href=\"https:\/\/data-flair.training\/blogs\/spring-ioc-containers\/\"><strong> IoC container<\/strong><\/a>-specific information. Moreover, we will see Spring Bean Definition Inheritance example using the Eclipse IDE.<br \/>\nSo, let&#8217;s start\u00a0Spring Bean Definition Inheritance.<\/p>\n<div id=\"attachment_20370\" style=\"width: 1210px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Spring-Bean-Definition-Inheritance-with-Eclipse-IDE-01.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-20370\" class=\"wp-image-20370 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Spring-Bean-Definition-Inheritance-with-Eclipse-IDE-01.jpg\" alt=\"Spring Bean Definition Inheritance with Bean Definition Template\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Spring-Bean-Definition-Inheritance-with-Eclipse-IDE-01.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Spring-Bean-Definition-Inheritance-with-Eclipse-IDE-01-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Spring-Bean-Definition-Inheritance-with-Eclipse-IDE-01-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Spring-Bean-Definition-Inheritance-with-Eclipse-IDE-01-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Spring-Bean-Definition-Inheritance-with-Eclipse-IDE-01-1024x536.jpg 1024w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><p id=\"caption-attachment-20370\" class=\"wp-caption-text\">Spring Bean Definition Inheritance with Bean Definition Template<\/p><\/div>\n<h2>2. Bean Definition Inheritance<\/h2>\n<p>The child beans definition inherits configuration data from the definition of the parent. Along with that the child definition has the ability to override some of the values while adding others when needed. The <a href=\"https:\/\/data-flair.training\/blogs\/class-and-object-in-java\/\"><strong>Java class<\/strong> <\/a>inheritance has nothing to do with the<a href=\"https:\/\/data-flair.training\/blogs\/spring-bean\/\"><strong> Spring Bean definition<\/strong><\/a> but the concept of inheritance is applied. You have the power of defining the parent bean as a template and the other child beans can inherit the required configuration from the parent bean.<br \/>\n<a href=\"https:\/\/data-flair.training\/blogs\/inheritance-in-java\/\"><strong>Let&#8217;s read about Java Inheritance in detail<\/strong><\/a><\/p>\n<h2>3. Bean Definition Inheritance Example using\u00a0Eclipse IDE<\/h2>\n<p>Let\u2019s define a working example using Eclipse IDE in Bean Definition Inheritance having the following steps:<\/p>\n<ol>\n<li>Create your project with name SpringEx and a package com.example. This should be under the src folder of your created project.<\/li>\n<li>Add the Spring Libraries that are required using the Add External JARs options.<\/li>\n<li>Create HelloWorld.java, HelloIndia.java and MainApp.java under the above made package.<\/li>\n<li>Write the Beans.xml configuration file under the src folder.<\/li>\n<li>Finally write code for all <a href=\"https:\/\/data-flair.training\/blogs\/java-file-class\/\"><strong>Java files<\/strong><\/a> and Bean config file and run the application as described.<\/li>\n<\/ol>\n<h3>i. The code for the HelloWorld.java<\/h3>\n<pre class=\"EnlighterJSRAW\">package com.example;\u00a0\r\npublic class HelloWorld {\r\n\u00a0\u00a0 private String message1;\r\n\u00a0\u00a0 private String message2;\r\n\u00a0\u00a0 public void setMessage1(String message){\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 this.message1 = message;\r\n\u00a0\u00a0 }\r\n\u00a0\u00a0 public void setMessage2(String message){\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 this.message2 = message;\r\n\u00a0\u00a0 }\r\n\u00a0\u00a0 public void getMessage1(){\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 System.out.println(\"World Message1 : \" + message1);\r\n\u00a0\u00a0 }\r\n\u00a0\u00a0 public void getMessage2(){\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 System.out.println(\"World Message2 : \" + message2);\r\n\u00a0\u00a0 }\r\n}<\/pre>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/spring-transaction-management\/\">Read about Spring Transaction Management &#8211; Types and Methods<\/a><\/strong><\/p>\n<h3>ii. The following is the code for HelloIndia.java<\/h3>\n<pre class=\"EnlighterJSRAW\">package com.example;\r\npublic class HelloIndia {\r\n\u00a0\u00a0 private String message1;\r\n\u00a0\u00a0 private String message2;\r\n\u00a0\u00a0 private String message3;\r\n\u00a0\u00a0 public void setMessage1(String message){\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 this.message1 = message;\r\n\u00a0\u00a0 }\r\n\u00a0\u00a0 public void setMessage2(String message){\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 this.message2 = message;\r\n\u00a0\u00a0 }\r\n\u00a0\u00a0 public void setMessage3(String message){\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 this.message3 = message;\r\n\u00a0\u00a0 }\r\n\u00a0\u00a0 public void getMessage1(){\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 System.out.println(\"India Message1 : \" + message1);\r\n\u00a0\u00a0 }\r\n\u00a0\u00a0 public void getMessage2(){\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 System.out.println(\"India Message2 : \" + message2);\r\n\u00a0\u00a0 }\r\n\u00a0\u00a0 public void getMessage3(){\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 System.out.println(\"India Message3 : \" + message3);\r\n\u00a0\u00a0 }\r\n}<\/pre>\n<h3>iii. MainApp.java is defined as follows<\/h3>\n<pre class=\"EnlighterJSRAW\">package com.example;\r\nimport org.springframework.context.ApplicationContext;\r\nimport org.springframework.context.support.ClassPathXmlApplicationContext;\u00a0\r\npublic class MainApp {\r\n\u00a0\u00a0 public static void main(String[] args) {\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 ApplicationContext context = new ClassPathXmlApplicationContext(\"Beans.xml\");\u00a0\u00a0\u00a0\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 HelloWorld objA = (HelloWorld) context.getBean(\"helloWorld\");\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 objA.getMessage1();\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 objA.getMessage2();\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 HelloIndia objB = (HelloIndia) context.getBean(\"helloIndia\");\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 objB.getMessage1();\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 objB.getMessage2();\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 objB.getMessage3();\r\n\u00a0\u00a0 }\r\n}<\/pre>\n<p>Now after defining the Java files, you see the configuration file Beans.xml where HelloWorld beans which has properties message2 and message1. Next, the HelloIndia bean has to be defined as the child of HelloWorld by using parent attribute. Then the child beans inherit the message 2 property and override the message 1 property introducing another property message 3.<br \/>\n<a href=\"https:\/\/data-flair.training\/blogs\/spring-beans-autowiring\/\"><strong>Have a look at Spring Beans Autowiring &#8211; Modes with Eclipse IDE Example<\/strong><\/a><br \/>\n<strong>The Beans.xml is as follow:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\">&lt;?xml version = \"1.0\" encoding = \"UTF-8\"?&gt;\r\n&lt;beans xmlns = \"http:\/\/www.springframework.org\/schema\/beans\"\r\n\u00a0\u00a0 xmlns:xsi = \"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"\r\n\u00a0\u00a0 xsi:schemaLocation = \"http:\/\/www.springframework.org\/schema\/beans\r\n\u00a0\u00a0 http:\/\/www.springframework.org\/schema\/beans\/spring-beans-3.0.xsd\"&gt;\r\n\u00a0\u00a0 &lt;bean id = \"helloWorld\" class = \"com.example.HelloWorld\"&gt;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;property name = \"message1\" value = \"Hello World!\"\/&gt;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;property name = \"message2\" value = \"Hello Second World!\"\/&gt;\r\n\u00a0\u00a0 &lt;\/bean&gt;\r\n\u00a0\u00a0 &lt;bean id =\" helloIndia\" class = \"com.example.HelloIndia\" parent = \"helloWorld\"&gt;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;property name = \"message1\" value = \"Hello India!\"\/&gt;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;property name = \"message3\" value = \"Namaste India!\"\/&gt;\r\n\u00a0\u00a0 &lt;\/bean&gt;\r\n&lt;\/beans&gt;<\/pre>\n<h2>4. The Bean Definition Template<\/h2>\n<p>You also have the possibility of creating the Bean Definition Template which is used by the other child bean definitions without giving much effort. So while you are defining the Bean Definition Template you shouldn\u2019t specify the class attribute but the abstract attribute. Also, you should specify the abstract attribute with the value \u201ctrue\u201d which is shown as below:<\/p>\n<pre class=\"EnlighterJSRAW\">&lt;?xml version = \"1.0\" encoding = \"UTF-8\"?&gt;\r\n&lt;beans xmlns = \"http:\/\/www.springframework.org\/schema\/beans\"\r\n\u00a0\u00a0 xmlns:xsi = \"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"\r\n\u00a0\u00a0 xsi:schemaLocation = \"http:\/\/www.springframework.org\/schema\/beans\r\n\u00a0\u00a0 http:\/\/www.springframework.org\/schema\/beans\/spring-beans-3.0.xsd\"&gt;\r\n\u00a0  &lt;bean id = \"beanTeamplate\" abstract = \"true\"&gt;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;property name = \"message1\" value = \"Hello World!\"\/&gt;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;property name = \"message2\" value = \"Hello Second World!\"\/&gt;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;property name = \"message3\" value = \"Namaste India!\"\/&gt;\r\n\u00a0\u00a0 &lt;\/bean&gt;\r\n\u00a0     &lt;bean id = \"helloIndia\" class = \"com.example.HelloIndia\" parent = \"beanTeamplate\"&gt;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;property name = \"message1\" value = \"Hello India!\"\/&gt;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 &lt;property name = \"message3\" value = \"Namaste India!\"\/&gt;\r\n\u00a0\u00a0 &lt;\/bean&gt;\r\n&lt;\/beans&gt;<\/pre>\n<p>The parent Bean can\u2019t be instantiated by its own as it is incomplete and is marked as abstract. Therefore, when the definition is abstract then its advisable to use it as a pure template Bean Definition only.<br \/>\nSo, this was all about Spring Bean Definition Inheritance. Hope you like our explanation.<\/p>\n<h2>5. Conclusion<\/h2>\n<p>Hence, in this session, we learned Spring framework Beans Definition Inheritance. The more detailed analysis was done by showing a working example using Eclipse IDE. Also, without putting much effort you can create a Bean Definition Template which is used by the other child beans definition. Furthermore, if you have any query regarding\u00a0Bean\u00a0Definition Inheritance, feel free to ask in the comment section.<br \/>\nRelated Topic &#8211; <a href=\"https:\/\/data-flair.training\/blogs\/beanpostprocessors\/\"><strong>Spring BeanPostProcessors <\/strong><\/a><br \/>\n<strong><a href=\"https:\/\/docs.spring.io\/spring\/docs\/3.0.0.M3\/reference\/html\/ch04s06.html\">For reference<\/a><\/strong><span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:1899,&quot;href&quot;:&quot;https:\\\/\\\/docs.spring.io\\\/spring\\\/docs\\\/3.0.0.M3\\\/reference\\\/html\\\/ch04s06.html&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20180101141628\\\/https:\\\/\\\/docs.spring.io\\\/spring\\\/docs\\\/3.0.0.M3\\\/reference\\\/html\\\/ch04s06.html&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-10 07:19:46&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-01-15 15:03:02&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-02-26 11:15:22&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-05-14 00:17:59&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-05-19 09:21:24&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-05-26 14:50:36&quot;,&quot;http_code&quot;:404},{&quot;date&quot;:&quot;2026-06-08 14:21:48&quot;,&quot;http_code&quot;:404}],&quot;broken&quot;:true,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-08 14:21:48&quot;,&quot;http_code&quot;:404},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Objective This is the last article featuring the Spring Beans where you will be learning about the Spring Bean Definition Inheritance. You should know that a bean definition contains a lot of information&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":20370,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[64],"tags":[1683,1685,3732,6709,13208],"class_list":["post-20360","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spring","tag-bean-definition-inheritance","tag-bean-definition-template","tag-definition-inheritance-in-spring-bean","tag-inheritance-in-spring-using-annotation","tag-spring-inherited"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Spring Bean Definition Inheritance &amp; Bean Definition Template - DataFlair<\/title>\n<meta name=\"description\" content=\"Spring Bean Definition Inheritance - Definition Inheritance in Spring Framework, Bean Definition Template, Bean Definition Inheritance using Eclipse IDE\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/bean-definition-inheritance\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spring Bean Definition Inheritance &amp; Bean Definition Template - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Spring Bean Definition Inheritance - Definition Inheritance in Spring Framework, Bean Definition Template, Bean Definition Inheritance using Eclipse IDE\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/bean-definition-inheritance\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-07-07T04:00:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-09-15T06:57:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Spring-Bean-Definition-Inheritance-with-Eclipse-IDE-01.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Spring Bean Definition Inheritance &amp; Bean Definition Template - DataFlair","description":"Spring Bean Definition Inheritance - Definition Inheritance in Spring Framework, Bean Definition Template, Bean Definition Inheritance using Eclipse IDE","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:\/\/data-flair.training\/blogs\/bean-definition-inheritance\/","og_locale":"en_US","og_type":"article","og_title":"Spring Bean Definition Inheritance &amp; Bean Definition Template - DataFlair","og_description":"Spring Bean Definition Inheritance - Definition Inheritance in Spring Framework, Bean Definition Template, Bean Definition Inheritance using Eclipse IDE","og_url":"https:\/\/data-flair.training\/blogs\/bean-definition-inheritance\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-07-07T04:00:49+00:00","article_modified_time":"2018-09-15T06:57:21+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Spring-Bean-Definition-Inheritance-with-Eclipse-IDE-01.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/bean-definition-inheritance\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/bean-definition-inheritance\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Spring Bean Definition Inheritance &amp; Bean Definition Template","datePublished":"2018-07-07T04:00:49+00:00","dateModified":"2018-09-15T06:57:21+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/bean-definition-inheritance\/"},"wordCount":573,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/bean-definition-inheritance\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Spring-Bean-Definition-Inheritance-with-Eclipse-IDE-01.jpg","keywords":["Bean Definition Inheritance","Bean Definition Template","Definition Inheritance in Spring Bean","inheritance in spring using annotation","spring @inherited"],"articleSection":["Spring Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/bean-definition-inheritance\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/bean-definition-inheritance\/","url":"https:\/\/data-flair.training\/blogs\/bean-definition-inheritance\/","name":"Spring Bean Definition Inheritance &amp; Bean Definition Template - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/bean-definition-inheritance\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/bean-definition-inheritance\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Spring-Bean-Definition-Inheritance-with-Eclipse-IDE-01.jpg","datePublished":"2018-07-07T04:00:49+00:00","dateModified":"2018-09-15T06:57:21+00:00","description":"Spring Bean Definition Inheritance - Definition Inheritance in Spring Framework, Bean Definition Template, Bean Definition Inheritance using Eclipse IDE","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/bean-definition-inheritance\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/bean-definition-inheritance\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/bean-definition-inheritance\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Spring-Bean-Definition-Inheritance-with-Eclipse-IDE-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/07\/Spring-Bean-Definition-Inheritance-with-Eclipse-IDE-01.jpg","width":1200,"height":628,"caption":"Spring Bean Definition Inheritance with Bean Definition Template"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/bean-definition-inheritance\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Reading data from external files","item":"https:\/\/data-flair.training\/blogs\/tag\/reading-data-from-external-files\/"},{"@type":"ListItem","position":3,"name":"Spring Bean Definition Inheritance &amp; Bean Definition Template"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/20360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=20360"}],"version-history":[{"count":3,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/20360\/revisions"}],"predecessor-version":[{"id":32631,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/20360\/revisions\/32631"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/20370"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=20360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=20360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=20360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}