Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Springでは、プロトタイプスコープでBeanを宣言する方法は? デフォルトでは、Spring IOC の Bean は singleton のスコープで自動的に初期化されます。
<bean id="your id" class="your class" scope="prototype" />
または使用中の注釈でマークし@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)ます
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)