Java Springのコア機能

Dependency Injection
あるクラスの処理が、他の特定のクラスに依存している状態を解消することがDIの目的です。

それでは、mavenでプロジェクトを作成していきます。
コマンドプロンプトでmvnコマンドを実行します。

>mvn archetype:generate

Define value for property 'groupId': jp.spring.sample1
Define value for property 'artifactId': MySampleApp1
Define value for property 'version' 1.0-SNAPSHOT: :
Define value for property 'package' jp.spring.sample1: :
Confirm properties configuration:
groupId: jp.spring.sample1
artifactId: MySampleApp1
version: 1.0-SNAPSHOT
package: jp.spring.sample1
 Y: :
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Old (1.x) Archetype: maven-archetype-quickstart:1.1
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: basedir, Value: C:\Users\***\Desktop
[INFO] Parameter: package, Value: jp.spring.sample1
[INFO] Parameter: groupId, Value: jp.spring.sample1
[INFO] Parameter: artifactId, Value: MySampleApp1
[INFO] Parameter: packageName, Value: jp.spring.sample1
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] project created from Old (1.x) Archetype in dir: C:\Users\***\Desktop\MySampleApp1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10:03 min
[INFO] Finished at: 2018-01-17T15:32:23+09:00
[INFO] Final Memory: 14M/75M
[INFO] ------------------------------------------------------------------------