<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Spring on AzurTian</title><link>https://azurtian.github.io/tags/spring/</link><description>Recent content in Spring on AzurTian</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><managingEditor>azurtian@qq.com (Azur Tian)</managingEditor><webMaster>azurtian@qq.com (Azur Tian)</webMaster><copyright>© 2026 Azur Tian</copyright><lastBuildDate>Tue, 27 Jan 2026 10:55:00 +0800</lastBuildDate><atom:link href="https://azurtian.github.io/tags/spring/index.xml" rel="self" type="application/rss+xml"/><item><title>Spring学习</title><link>https://azurtian.github.io/docs/spring/</link><pubDate>Tue, 14 Jan 2025 10:55:00 +0800</pubDate><author>azurtian@qq.com (Azur Tian)</author><guid>https://azurtian.github.io/docs/spring/</guid><description>&lt;h2 class="relative group"&gt;IOC
 &lt;div id="ioc" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#ioc" aria-label="锚点"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h2&gt;

&lt;h3 class="relative group"&gt;基本概念
 &lt;div id="基本概念" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#%e5%9f%ba%e6%9c%ac%e6%a6%82%e5%bf%b5" aria-label="锚点"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h3&gt;
&lt;blockquote&gt;&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;控制反转&lt;/strong&gt;（Inversion of Control，缩写为&lt;strong&gt;IoC&lt;/strong&gt;），面向对象编程的一种设计原则，可以用来减低计算机代码之间的耦合度。最常见的方式叫做依赖注入（Dependency Injection，简称&lt;strong&gt;DI&lt;/strong&gt;），还有一种方式叫依赖查找（Dependency Lookup）。&lt;/li&gt;
&lt;li&gt;通过控制反转，对象在被创建的时候，由一个调控系统内所有对象的外界实体将其所依赖的对象的引用传递给它。也可以说，依赖被注入到对象中。&lt;/li&gt;
&lt;li&gt;IOC思想基于IOC容器完成，IOC容器底层就是对象工厂&lt;/li&gt;
&lt;/ol&gt;
&lt;/blockquote&gt;
&lt;h4 class="relative group"&gt;Spring提供IOC容器实现两种方式
 &lt;div id="spring提供ioc容器实现两种方式" class="anchor"&gt;&lt;/div&gt;
 
 &lt;span
 class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;
 &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#spring%e6%8f%90%e4%be%9bioc%e5%ae%b9%e5%99%a8%e5%ae%9e%e7%8e%b0%e4%b8%a4%e7%a7%8d%e6%96%b9%e5%bc%8f" aria-label="锚点"&gt;#&lt;/a&gt;
 &lt;/span&gt;
 
&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;BeanFactory：IOC容器基本实现，是spring内部的使用接口，不提供开发人员进行使用（加载配置文件的时候不会创建对象，在获取对象才去创建对象）&lt;/p&gt;</description></item></channel></rss>