

{"id":18696,"date":"2018-06-22T04:00:21","date_gmt":"2018-06-22T04:00:21","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=18696"},"modified":"2018-09-15T18:00:32","modified_gmt":"2018-09-15T12:30:32","slug":"spring-ioc-containers","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/spring-ioc-containers\/","title":{"rendered":"Spring IoC Containers &#8211; Types of Spring Container"},"content":{"rendered":"<h2 class=\"western\">1. Objective<\/h2>\n<p>In our last <a href=\"https:\/\/data-flair.training\/blogs\/spring-framework-tutorial\/\"><strong>Spring Tutorial<\/strong><\/a>, we studied <a href=\"https:\/\/data-flair.training\/blogs\/spring-framework-architecture\/\"><strong>Spring Framework Architecture<\/strong><\/a>\u00a0and today in this Spring Tutorial, you will learn about Spring IoC Containers and the work of IoC Container in development of Spring Applications. Also, you will be getting to know about the two distinct types of Spring IoC Containers which are a BeanFactory Container and ApplicationContext Container in Spring Framework.<\/p>\n<p>So, let&#8217;s start Spring IoC Containers.<\/p>\n<div id=\"attachment_18712\" style=\"width: 1210px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Spring-IoC-Containers-01.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-18712\" class=\"wp-image-18712 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Spring-IoC-Containers-01.jpg\" alt=\"Spring IoC Containers - Types of Spring Container\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Spring-IoC-Containers-01.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Spring-IoC-Containers-01-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Spring-IoC-Containers-01-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Spring-IoC-Containers-01-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Spring-IoC-Containers-01-1024x536.jpg 1024w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><p id=\"caption-attachment-18712\" class=\"wp-caption-text\">Spring IoC Containers &#8211; Types of Spring Container<\/p><\/div>\n<h2 class=\"western\">2. Spring IoC Containers<\/h2>\n<p>The Spring container is the core of Spring Framework. The container, use for creating the objects and configuring them. Also, Spring IoC Containers use for managing the complete lifecycle from creation to its destruction. It uses <em>Dependency Injection<\/em> (DI) to manage components and these objects are called <em><strong>Spring Beans<\/strong><\/em>. The container uses configuration metadata which represent by Java code, annotations or XML along with<a href=\"https:\/\/data-flair.training\/blogs\/pojo-class-in-java\/\"><strong> Java POJO<\/strong><\/a> classes as seen below.<\/p>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/spring-framework-features\/\">Do you know Features of Spring Framework?<\/a><\/strong><\/p>\n<div id=\"attachment_18713\" style=\"width: 386px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/spring_ioc_container.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-18713\" class=\"wp-image-18713 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/spring_ioc_container.jpg\" alt=\"Spring IoC Containers - Types of Spring Container\" width=\"376\" height=\"331\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/spring_ioc_container.jpg 376w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/spring_ioc_container-150x132.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/spring_ioc_container-300x264.jpg 300w\" sizes=\"auto, (max-width: 376px) 100vw, 376px\" \/><\/a><p id=\"caption-attachment-18713\" class=\"wp-caption-text\">Spring IoC Containers &#8211; Types of Spring Container<\/p><\/div>\n<h2>3. Types of IoC Containers in Spring<\/h2>\n<p>This are the two types of Spring IoC Containers, let&#8217;s see one by one:<\/p>\n<h3 class=\"western\">a. Spring BeanFactory Container<\/h3>\n<p>Spring BeanFactory Container is the simplest container which provides basic support for DI. It is defined by org.springframework.beans.factory.BeanFactory interface. There are many implementations of BeanFactory interface that come with Spring where XmlBeanFactory being the most commonly used class. XmlBeanFactory reads configuration metadata from XML file for creating a fully configured application.<br \/>\nThe BeanFactory container prefer, where resources are limited to mobile devices or applet-based applications.<br \/>\n<strong><a href=\"https:\/\/data-flair.training\/blogs\/spring-framework-architecture\/\">Let&#8217;s learn Spring Framework Architecture with Modules<\/a><\/strong><br \/>\nYou will look at a working example with Eclipse IDE with the following steps for creating Spring application<\/p>\n<ul>\n<li>Create a project with a name SpringExample and a package packagecom.example. These should be under src folder of the created project.<\/li>\n<li>Add the needed Spring libraries using Add External JARs.<\/li>\n<li>Create <strong><a href=\"https:\/\/data-flair.training\/blogs\/class-and-object-in-java\/\">Java classes<\/a><\/strong> HelloWorld and MainApp under the package packagecom .example.<\/li>\n<li>Create Beans config file Beans.xml under src folder.<\/li>\n<li>At last, create content of all Java files and Beans configuration file and run the file as below.<\/li>\n<\/ul>\n<p>The code of HelloWorld.java is as shown.<\/p>\n<pre class=\"EnlighterJSRAW\">package com.example;\r\npublic class HelloWorld {\r\nprivate String message;\r\npublic void setMessage(String message){\r\nthis.message = message;\r\n}\r\npublic void getMessage(){\r\nSystem.out.println(\"Your Message : \" + message);\r\n}\r\n}<\/pre>\n<p>The following is the code of MainApp.java.<\/p>\n<pre class=\"EnlighterJSRAW\">package com.example;\r\nimport org.springframework.beans.factory.InitializingBean;\r\nimport org.springframework.beans.factory.xml.XmlBeanFactory;\r\nimport org.springframework.core.io.ClassPathResource;\r\npublic class MainApp {\r\npublic static void main(String[] args) {\r\nXmlBeanFactory factory = new XmlBeanFactory (new ClassPathResource(\"Beans.xml\"));\r\nHelloWorld obj = (HelloWorld) factory.getBean(\"helloWorld\");\r\nobj.getMessage();\r\n}\r\n}<span style=\"background-color: #fafafa;color: #333333;font-family: Verdana, Geneva, sans-serif;font-size: 16px;font-weight: inherit\">\u00a0<\/span>\r\n<\/pre>\n<p>There are some points which should be taken about the main program:<\/p>\n<ul>\n<li>Write a factory object where you have used APIXmlBeanFactory() to load bean config file in CLASSPATH.<\/li>\n<li>Use getBean() which uses bean ID to return a generic object to get the required bean.<\/li>\n<\/ul>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/spring-boot-cli\/\">Let&#8217;s See What is Spring Boot CLI with Example<\/a><\/strong><br \/>\nFollowing is the XML code for Beans.xml.<\/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\nxmlns:xsi = \"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"\r\nxsi:schemaLocation = \"http:\/\/www.springframework.org\/schema\/beans\r\nhttp:\/\/www.springframework.org\/schema\/beans\/spring-beans-3.0.xsd\"&gt;\r\n&lt;bean id = \"helloWorld\" class = \"com.example.HelloWorld\"&gt;\r\n&lt;property name = \"message\" value = \"Hello World!\"\/&gt;\r\n&lt;\/bean&gt;\r\n&lt;\/beans&gt;\r\n<\/pre>\n<p>After you run the application you will see the following message as output.<br \/>\n<strong>Your Message: Hello World!<\/strong><\/p>\n<h3 class=\"western\">b. Spring ApplicationContext Container<\/h3>\n<p>The ApplicationContext container is Spring\u2019s advanced container. It is defined by org.springframework.context.ApplicationContext interface. The ApplicationContext container has all the functionalities of BeanFactory. It is generally recommended over BeanFactory. The most common implementations of ApplicationContext are:<\/p>\n<ul>\n<li><strong>FileSystemXmlApplicationContext:<\/strong> It is a type of container which loads the definitions of beans from an XML file. For that, you should be able to provide the full path of the XML bean config file to a constructor.<\/li>\n<li><strong>ClassPathXmlApplicationContext:<\/strong> This type of container loads definitions of the beans from XML file but you don\u2019t need to provide the full path of the XML file. Only the CLASSPATH has to set properly as this container will look like Bean config XML file.<\/li>\n<li><strong>WebXmlApplicationContext:<\/strong> This type of container loads the XML file with all bean definitions within a web application.<\/li>\n<\/ul>\n<h4>i. Working of Eclipse IDE<\/h4>\n<p>You will better understand with a working example in Eclipse IDE with the following steps:<\/p>\n<ul>\n<li>Create a project with a name SpringExample and a package packagecom.example. These should under src folder of the created project.<\/li>\n<li>Add the needed Spring libraries using Add External JARs.<\/li>\n<li>Create Java classes HelloWorld and MainApp under the package packagecom .example.<\/li>\n<li>Create Beans config file Beans.xml under src folder.<\/li>\n<li>At last, create content of all Java files and Beans configuration file and run the file as below.<\/li>\n<\/ul>\n<p><strong><a href=\"https:\/\/data-flair.training\/blogs\/spring-jdbc\/\">Follow this link this know more about Spring JDBC Framework &#8211; JDBC Template with Eclipse IDE<\/a><\/strong><br \/>\nThe code for HelloWorld.java file:<\/p>\n<pre class=\"EnlighterJSRAW\">package com.example;\r\npublic class HelloWorld {\r\nprivate String message;\r\npublic void setMessage(String message){\r\nthis.message = message;\r\n}\r\npublic void getMessage(){\r\nSystem.out.println(\"Your Message : \" + message);\r\n}\r\n}<\/pre>\n<p>The code for MainApp.java:<\/p>\n<pre class=\"EnlighterJSRAW\">package com.example;\r\nimport org.springframework.context.ApplicationContext;\r\nimport org.springframework.context.support.FileSystemXmlApplicationContext;\r\npublic class MainApp {\r\npublic static void main(String[] args) {\r\nApplicationContext context = new FileSystemXmlApplicationContext\r\n(\"C:\/Users\/ADMIN\/workspace\/HelloSpring\/src\/Beans.xml\");\r\nHelloWorld obj = (HelloWorld) context.getBean(\"helloWorld\");\r\nobj.getMessage();\r\n}\r\n}<\/pre>\n<h4>ii. Some Points<\/h4>\n<p>Some points should note about the main program:<\/p>\n<ul>\n<li>Using framework API FileSystemXmlApplicationContext create a factory object. This API takes care of creating and initializing all objects.<\/li>\n<li>Use getBean() which uses bean ID to return a generic object to get the required bean.<\/li>\n<\/ul>\n<p>The code for Beans.xml is as given:<\/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\nxmlns:xsi = \"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"\r\nxsi:schemaLocation = \"http:\/\/www.springframework.org\/schema\/beans\r\nhttp:\/\/www.springframework.org\/schema\/beans\/spring-beans-3.0.xsd\"&gt;\r\n&lt;bean id = \"helloWorld\" class = \"com.example.HelloWorld\"&gt;\r\n&lt;property name = \"message\" value = \"Hello World!\"\/&gt;\r\n&lt;\/bean&gt;\r\n&lt;\/beans&gt;<\/pre>\n<p>After creating source and bean config files, run the application. You will see the following as your output.<br \/>\n<strong>Your Message: Hello World!<\/strong><br \/>\nSo, this was all about Spring IoC Containers. Hope you like our explanation.<\/p>\n<h2 class=\"western\">4. Conclusion<\/h2>\n<p>Hence, in this Spring Containers tutorial, we learned two types of Spring IoC Containers:\u00a0BeanFactory Container and ApplicationContext Container in Spring Framework. Furthermore, if you have any query regarding IoC Containers, feel free to ask in the comment section.<br \/>\nSee Also- <a href=\"https:\/\/data-flair.training\/blogs\/spring-mvc-framework\/\"><b>Spring MVC Framework<\/b><\/a><br \/>\n<strong><a href=\"https:\/\/spring.io\/\">For reference<\/a><\/strong><span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:1823,&quot;href&quot;:&quot;https:\\\/\\\/spring.io&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20251002190622\\\/https:\\\/\\\/spring.io\\\/&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2025-12-10 03:27:37&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-14 02:20:54&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-19 19:26:33&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-23 10:28:39&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2025-12-30 06:58:20&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-03 06:23:46&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-09 18:01:40&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-13 03:12:31&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-22 11:21:37&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-25 13:38:41&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-01-29 05:56:23&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-02 09:35:13&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-05 15:52:29&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-09 03:56:31&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-12 07:31:04&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-16 18:55:17&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-20 13:47:00&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-24 10:07:01&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-02-27 11:28:19&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-03 07:26:48&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-08 10:36:29&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-12 10:58:48&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-17 02:45:18&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-20 11:19:10&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-25 07:42:07&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-03-30 15:23:01&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-04 14:58:28&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-07 23:24:31&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-11 11:15:40&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-15 18:23:31&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-19 05:32:13&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-25 00:03:24&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-04-28 03:59:45&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-01 09:08:26&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-04 14:32:30&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-10 13:42:16&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-14 21:00:18&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-19 09:20:49&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-24 07:42:05&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-27 09:18:06&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-05-30 11:17:06&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-02 19:01:27&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-09 06:12:11&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-12 11:09:55&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-15 14:25:55&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-19 04:41:54&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-19 04:41:54&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Objective In our last Spring Tutorial, we studied Spring Framework Architecture\u00a0and today in this Spring Tutorial, you will learn about Spring IoC Containers and the work of IoC Container in development of Spring&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":18712,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[64],"tags":[2945,7167,13228,13263,13285,13286,13332,13333,15113],"class_list":["post-18696","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spring","tag-container-in-spring","tag-ioc-container","tag-spring-applicationcontext-container","tag-spring-beanfactory-container","tag-spring-container","tag-spring-containers","tag-spring-ioc","tag-spring-ioc-container","tag-types-of-spring-container"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Spring IoC Containers - Types of Spring Container - DataFlair<\/title>\n<meta name=\"description\" content=\"Spring IoC Containers- Types of IoC containers in Spring Framework,BeanFactory Container &amp; ApplicationContext Container in Spring IoC,Working of 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\/spring-ioc-containers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Spring IoC Containers - Types of Spring Container - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Spring IoC Containers- Types of IoC containers in Spring Framework,BeanFactory Container &amp; ApplicationContext Container in Spring IoC,Working of Eclipse IDE\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/spring-ioc-containers\/\" \/>\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-06-22T04:00:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-09-15T12:30:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Spring-IoC-Containers-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=\"6 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Spring IoC Containers - Types of Spring Container - DataFlair","description":"Spring IoC Containers- Types of IoC containers in Spring Framework,BeanFactory Container & ApplicationContext Container in Spring IoC,Working of 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\/spring-ioc-containers\/","og_locale":"en_US","og_type":"article","og_title":"Spring IoC Containers - Types of Spring Container - DataFlair","og_description":"Spring IoC Containers- Types of IoC containers in Spring Framework,BeanFactory Container & ApplicationContext Container in Spring IoC,Working of Eclipse IDE","og_url":"https:\/\/data-flair.training\/blogs\/spring-ioc-containers\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-06-22T04:00:21+00:00","article_modified_time":"2018-09-15T12:30:32+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Spring-IoC-Containers-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":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/spring-ioc-containers\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/spring-ioc-containers\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Spring IoC Containers &#8211; Types of Spring Container","datePublished":"2018-06-22T04:00:21+00:00","dateModified":"2018-09-15T12:30:32+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/spring-ioc-containers\/"},"wordCount":862,"commentCount":3,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/spring-ioc-containers\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Spring-IoC-Containers-01.jpg","keywords":["Container in Spring","IoC Container","Spring ApplicationContext Container","Spring BeanFactory Container","Spring Container","Spring Containers","Spring IoC","Spring IoC Container","Types of Spring Container"],"articleSection":["Spring Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/spring-ioc-containers\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/spring-ioc-containers\/","url":"https:\/\/data-flair.training\/blogs\/spring-ioc-containers\/","name":"Spring IoC Containers - Types of Spring Container - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/spring-ioc-containers\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/spring-ioc-containers\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Spring-IoC-Containers-01.jpg","datePublished":"2018-06-22T04:00:21+00:00","dateModified":"2018-09-15T12:30:32+00:00","description":"Spring IoC Containers- Types of IoC containers in Spring Framework,BeanFactory Container & ApplicationContext Container in Spring IoC,Working of Eclipse IDE","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/spring-ioc-containers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/spring-ioc-containers\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/spring-ioc-containers\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Spring-IoC-Containers-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/Spring-IoC-Containers-01.jpg","width":1200,"height":628,"caption":"Spring IoC Containers - Types of Spring Container"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/spring-ioc-containers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Spring Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/spring\/"},{"@type":"ListItem","position":3,"name":"Spring IoC Containers &#8211; Types of Spring Container"}]},{"@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\/18696","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=18696"}],"version-history":[{"count":5,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/18696\/revisions"}],"predecessor-version":[{"id":34170,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/18696\/revisions\/34170"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/18712"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=18696"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=18696"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=18696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}