- バックアップ一覧
- 差分 を表示
- 現在との差分 を表示
- ソース を表示
- Spring/SpringFramework/Core/IoC へ行く。
- 1 (2018-07-01 (日) 22:01:56)
- 2 (2018-07-01 (日) 22:11:43)
- 3 (2018-07-02 (月) 05:37:07)
- 4 (2018-07-03 (火) 09:16:58)
Inversion of Control (IoC) 原則の実装である依存オブジェクト注入について以下整理する。
動作確認のための準備 †
SpringのIoCコンテナのベースは、org.springframework.beans
とorg.springframework.context
パッケージから構成されている。動作確認しながら仕組みを理解するために、Eclipse等のIDEでMavenプロジェクトを作成し、以下の設定をpon.xmlに追加しておくと良い。
<dependencies> <!-- https://mvnrepository.com/artifact/org.springframework/spring-core --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>5.0.7.RELEASE</version> </dependency> <!-- https://mvnrepository.com/artifact/org.springframework/spring-context --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>5.0.7.RELEASE</version> </dependency> </dependencies>
参考 https://mvnrepository.com/artifact/org.springframework