<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>a4dosanddos</author_name>
  <author_url>https://blog.hatena.ne.jp/a4dosanddos/</author_url>
  <blog_title>プログラム日記</blog_title>
  <blog_url>https://a4dosanddos.hatenablog.com/</blog_url>
  <categories>
    <anon>Spring</anon>
  </categories>
  <description>Spring の DI について、ちゃんと使ったことなかったので、勉強してみた。その時のメモ。DI するには、&quot;アノテーション&quot; 使う方法と、&quot;Bean ファイル&quot; 使う方法があるみたいだけど、 今回は &quot;アノテーション&quot; 使う方法でやってみた。用意したソースコード、設定ファイルは以下の通り。 @Component、@Autowired あたりが DI する際に必要なアノテーション。 インスタンス変数 ( 以下では person ) の前に @Autowired を付けると、@Component がついた クラスから、インジェクション可能なクラスを探してきてくれるみたいです。■ Hello.j…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa4dosanddos.hatenablog.com%2Fentry%2F2013%2F07%2F06%2F170303&quot; title=&quot;「Spring」アノテーションで DI する - プログラム日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://cdn-ak.f.st-hatena.com/images/fotolife/a/a4dosanddos/20130706/20130706170157.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-07-06 17:03:03</published>
  <title>「Spring」アノテーションで DI する</title>
  <type>rich</type>
  <url>https://a4dosanddos.hatenablog.com/entry/2013/07/06/170303</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
