Bean†
Beanの利用方法†
Bean定義ファイル を使った利用†
- Spring Bean Configuration File(Spring Bean 構成ファイル)
<bean id="abc" class="com.abc">
<property name="def" value="DEF" />
</bean>
アノテーション を使った利用†
- @Configuration
- org.springframework.context.annotation.Configuration;
- @Bean
- org.springframework.context.annotation.Bean;
Beanクラス†
- プロパティ
- privateフィールド
- Setterメソッド
- Getterメソッド
関連用語†