0
0

More than 1 year has passed since last update.

コンポーネントスキャン

Posted at

Bean 定義用のアノテーションが付与されたクラスをスキャンし、DI コンテナーに登録します。
この DI コンテナーによるスキャンを コンポーネントスキャン といいます。

@Autowired アノテーションを付けることで、オートワイヤリング (autowiring) という、DI コンテナーから型の一致する Bean を探し、見つかった場合に自動注入を行います。

🖊️ 構文

@Autowired

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0